Exemple #1
0
        private void Output(string message, bool isError = false)
        {
            if (IsQuiet)
            {
                return;
            }

            ConsoleDebug.Write(message, isError);
        }
        private static void PrintException(Exception e)
        {
            Exception?CurrentException = e;

            do
            {
                ConsoleDebug.Write("***************");
                ConsoleDebug.Write(CurrentException.Message);

                string?StackTrace = CurrentException.StackTrace;
                if (StackTrace != null)
                {
                    ConsoleDebug.Write(StackTrace);
                }

                CurrentException = CurrentException.InnerException;
            }while (CurrentException != null);
        }