예제 #1
0
 public CoreError(CoreState state, TraceBack traceback, CoreErrorType type, string msg = null)
 {
     this.state     = state;
     this.traceback = traceback;
     this.type      = type;
     // Check if the error is fatal by checking the error type
     this.fatal = ((int)type) > 0;
     this.msg   = msg;
 }
예제 #2
0
 /// <inheritdoc />
 public void LogTraceBack(TraceBack content, object?returnValue = null)
 {
     WriteLog("TraceBack", content + returnValue switch
     {
         { } => $"({returnValue})",
예제 #3
0
 /// <inheritdoc />
 public void Update(string returnValue, string information, TraceBack traceBack, string promptInformation)
 {
     Update(returnValue, information, traceBack);
     LastPromptInformation = promptInformation;
 }
예제 #4
0
 /// <inheritdoc />
 public virtual void Update(string returnValue, string information, TraceBack traceBack)
 {
     LastReturnValue = returnValue;
     LastInformation = information;
     LastTraceBack   = traceBack;
 }
예제 #5
0
 /// <inheritdoc />
 public Task LogTraceBackAsync(TraceBack content, object?returnValue = null)
 => Element.LogTraceBackAsync(content, returnValue);
예제 #6
0
 /// <inheritdoc />
 public void LogTraceBack(TraceBack content, object?returnValue = null)
 => Element.LogTraceBack(content, returnValue);