Table of Contents

Class OpusException

Namespace
DSharpPlus.VoiceLink.Opus
Assembly
DSharpPlus.VoiceLink.dll

Thrown by any Opus method that could fail.

public sealed class OpusException : Exception, ISerializable
Inheritance
OpusException
Implements
Inherited Members

Constructors

public OpusException(OpusErrorCode errorCode)

Parameters

errorCode OpusErrorCode
public OpusException(OpusErrorCode errorCode, string message)

Parameters

errorCode OpusErrorCode
message string
public OpusException(OpusErrorCode errorCode, string message, Exception inner)

Parameters

errorCode OpusErrorCode
message string
inner Exception

Properties

The error code that any Opus method could have failed with.

public OpusErrorCode ErrorCode { get; init; }

Property Value

OpusErrorCode

Methods

Matches an error code to a human-readable error message.

public static string GetErrorMessage(OpusErrorCode errorCode)

Parameters

errorCode OpusErrorCode

The error code to match.

Returns

string

A human-readable error message.