Table of Contents

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

ErrorCode int

The standardized error code for this error.

Verbose string

The verbose trace message associated with this error.

StackTrace object

The 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

int

StackTrace

The execution stack trace associated with this error.

public object? StackTrace { get; init; }

Property Value

object

Verbose

The verbose trace message associated with this error.

public string Verbose { get; init; }

Property Value

string