Class VBRuntimeErrorInfo
Encapsulates the serializable error data for a runtime error.
public record VBRuntimeErrorInfo : VBErrorInfo, IEquatable<VBErrorInfo>, IEquatable<VBRuntimeErrorInfo>
- Inheritance
-
VBRuntimeErrorInfo
- Implements
- Inherited Members
Remarks
A runtime error occurs while traversing the abstract syntax tree (AST) in the RDCore runtime.
Fields
VBRuntimeErrors
The Classic-VB runtime error numbers and messages.
public static readonly Dictionary<VBRuntimeErrorId, string> VBRuntimeErrors
Field Value
Remarks
👉 TODO localize to Exceptions.resx.
Methods
For(VBRuntimeErrorId, Location, string)
Creates a new VBRuntimeErrorInfo describing the specified VBRuntimeErrorId at the specified Location.
public static VBRuntimeErrorInfo For(VBRuntimeErrorId vbCompileErrorId, Location location, string verbose)
Parameters
vbCompileErrorIdVBRuntimeErrorIdThe formal VBRuntimeErrorId value for this error.
locationLocationThe document location of the problematic node.
verbosestringA detailed message that is optionally appended, depending on the current server trace configuration.
Returns
- VBRuntimeErrorInfo
A new instance of a VBRuntimeErrorInfo encapsulating the specified error metadata with a localized description string.
GetErrorString(VBRuntimeErrorId)
Gets the standard (localied) error message for the specified errorId.
public static string GetErrorString(VBRuntimeErrorId errorId)
Parameters
errorIdVBRuntimeErrorIdThe formal VBRuntimeErrorId value for this error.