Class RuntimeErrorDto
A run-time error that code is guaranteed to raise, as it travels.
public record RuntimeErrorDto : IEquatable<RuntimeErrorDto>
- Inheritance
-
RuntimeErrorDto
- Implements
- Inherited Members
Constructors
RuntimeErrorDto(int, SourceLocation, string, string, bool)
A run-time error that code is guaranteed to raise, as it travels.
public RuntimeErrorDto(int ErrorId, SourceLocation Location, string Description, string Verbose, bool IsApplicationError = false)
Parameters
ErrorIdintThe number of the error.
LocationSourceLocationWhere it is raised.
DescriptionstringWhat the error is.
VerbosestringWhat is wrong, in particular.
IsApplicationErrorboolWhether the code raises the error for itself (
Error,Err.Raise): a VBApplicationErrorInfo, rather than one the language raises (VBRuntimeErrorInfo).
Properties
Description
What the error is.
public string Description { get; init; }
Property Value
ErrorId
The number of the error.
public int ErrorId { get; init; }
Property Value
IsApplicationError
Whether the code raises the error for itself (Error, Err.Raise): a VBApplicationErrorInfo, rather than one the language
raises (VBRuntimeErrorInfo).
public bool IsApplicationError { get; init; }
Property Value
Location
Where it is raised.
public SourceLocation Location { get; init; }
Property Value
Verbose
What is wrong, in particular.
public string Verbose { get; init; }
Property Value
Methods
From(VBErrorInfo)
Describes an error for the wire.
public static RuntimeErrorDto From(VBErrorInfo error)
Parameters
errorVBErrorInfoThe error.
Returns
ToInfo()
The error, as the family it belongs to describes it.
public VBErrorInfo ToInfo()