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; }
/// <inheritdoc /> public void LogTraceBack(TraceBack content, object?returnValue = null) { WriteLog("TraceBack", content + returnValue switch { { } => $"({returnValue})",
/// <inheritdoc /> public void Update(string returnValue, string information, TraceBack traceBack, string promptInformation) { Update(returnValue, information, traceBack); LastPromptInformation = promptInformation; }
/// <inheritdoc /> public virtual void Update(string returnValue, string information, TraceBack traceBack) { LastReturnValue = returnValue; LastInformation = information; LastTraceBack = traceBack; }
/// <inheritdoc /> public Task LogTraceBackAsync(TraceBack content, object?returnValue = null) => Element.LogTraceBackAsync(content, returnValue);
/// <inheritdoc /> public void LogTraceBack(TraceBack content, object?returnValue = null) => Element.LogTraceBack(content, returnValue);