Table of Contents

Class RuntimeErrorDto

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

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

ErrorId int

The number of the error.

Location SourceLocation

Where it is raised.

Description string

What the error is.

Verbose string

What is wrong, in particular.

IsApplicationError bool

Whether 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

string

ErrorId

The number of the error.

public int ErrorId { get; init; }

Property Value

int

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

bool

Location

Where it is raised.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Verbose

What is wrong, in particular.

public string Verbose { get; init; }

Property Value

string

Methods

From(VBErrorInfo)

Describes an error for the wire.

public static RuntimeErrorDto From(VBErrorInfo error)

Parameters

error VBErrorInfo

The error.

Returns

RuntimeErrorDto

ToInfo()

The error, as the family it belongs to describes it.

public VBErrorInfo ToInfo()

Returns

VBErrorInfo