Dev2.ServerLifecycleManager.Fail C# (CSharp) Method

Fail() static private method

Executes each workflow contained in the group indicated by groupName in the same order that they were specified in the configuration file.
static private Fail ( string message, Exception e ) : void
message string
e System.Exception
return void
        static void Fail(string message, Exception e)
        {
            var ex = e;
            var errors = new StringBuilder();
            while(ex != null)
            {
                errors.AppendLine(ex.Message);
                errors.AppendLine(ex.StackTrace);
                ex = ex.InnerException;
            }

            WriteLine("Critical Failure: " + message);
            WriteLine(errors.ToString());

            WriteLine("");
        }

Same methods

ServerLifecycleManager::Fail ( string message, string details = "" ) : void