Class VBErrorInfo
Encapsulates the serializable error data for an error.
public abstract record VBErrorInfo : IEquatable<VBErrorInfo>
- Inheritance
-
VBErrorInfo
- Implements
- Derived
- Inherited Members
Remarks
🧩 Errors should be used to generate error diagnostics.
Constructors
VBErrorInfo(int, Location, string, string)
Encapsulates the serializable error data for an error.
protected VBErrorInfo(int ErrorId, Location Location, string Description, string Verbose)
Parameters
ErrorIdintThe numeric (
int) representation of the formal error code.LocationLocationThe document location of the faulted CST node.
DescriptionstringAn optional error description. "Syntax error" unless specified otherwise.
VerbosestringA detailed message identifying the faulted CST token and detailing its semantics.
Remarks
🧩 Errors should be used to generate error diagnostics.
Properties
Description
An optional error description. "Syntax error" unless specified otherwise.
public string Description { get; init; }
Property Value
ErrorId
The numeric (int) representation of the formal error code.
public int ErrorId { get; init; }
Property Value
Location
The document location of the faulted CST node.
public Location Location { get; init; }
Property Value
Verbose
A detailed message identifying the faulted CST token and detailing its semantics.
public string Verbose { get; init; }