Table of Contents

Class ErrorInfo

Namespace
Nyra.Entities
Assembly
Nyra.dll

An error reported by an audio node, in load results and track exception events.

public sealed record ErrorInfo : IEquatable<ErrorInfo>
Inheritance
ErrorInfo
Implements
Inherited Members

Properties

Cause

The cause of the error.

[JsonPropertyName("cause")]
[JsonInclude]
public string? Cause { get; }

Property Value

string

CauseStackTrace

Lavalink only.

[JsonPropertyName("causeStackTrace")]
[JsonInclude]
public string? CauseStackTrace { get; }

Property Value

string

Message

The message of the error.

[JsonPropertyName("message")]
[JsonInclude]
public string? Message { get; }

Property Value

string

Severity

May be omitted by NodeLink.

[JsonPropertyName("severity")]
[JsonInclude]
public ErrorSeverity? Severity { get; }

Property Value

ErrorSeverity?

Methods

ToString()

Returns the error as severity and message, or the cause when there is no message.

public override string ToString()

Returns

string

The formatted error, from whatever parts it has.