Struct ErrorDiagnosticMetadata
- Namespace
- RDCore.SDK.Semantics.Diagnostics
- Assembly
- RDCore.SDK.dll
Encapsulates additional metadata specifically for error diagnostics.
public readonly record struct ErrorDiagnosticMetadata : IEquatable<ErrorDiagnosticMetadata>
- Implements
- Inherited Members
Remarks
Applicable to diagnostics issued from SyntaxErrorInfo, CompileErrorInfo, RuntimeErrorInfo, and ApplicationErrorInfo.
Constructors
ErrorDiagnosticMetadata(int, string, object?)
Encapsulates additional metadata specifically for error diagnostics.
public ErrorDiagnosticMetadata(int ErrorCode, string Verbose, object? StackTrace = null)
Parameters
ErrorCodeintThe standardized error code for this error.
VerbosestringThe verbose trace message associated with this error.
StackTraceobjectThe execution stack trace associated with this error.
Remarks
Applicable to diagnostics issued from SyntaxErrorInfo, CompileErrorInfo, RuntimeErrorInfo, and ApplicationErrorInfo.
Properties
ErrorCode
The standardized error code for this error.
public int ErrorCode { get; init; }
Property Value
StackTrace
The execution stack trace associated with this error.
public object? StackTrace { get; init; }
Property Value
Verbose
The verbose trace message associated with this error.
public string Verbose { get; init; }