Table of Contents

Class VBRuntimeErrorInfo

Namespace
RDCore.SDK.Model.Errors
Assembly
RDCore.SDK.dll

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

Dictionary<VBRuntimeErrorId, string>

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

vbCompileErrorId VBRuntimeErrorId

The formal VBRuntimeErrorId value for this error.

location Location

The document location of the problematic node.

verbose string

A 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

errorId VBRuntimeErrorId

The formal VBRuntimeErrorId value for this error.

Returns

string