Table of Contents

Class VoiceHandshakeException

Namespace
Nyra.Exceptions
Assembly
Nyra.dll

A Discord voice handshake that timed out, failed, or was cancelled by the Discord bridge.

public sealed class VoiceHandshakeException : NyraException, ISerializable
Inheritance
VoiceHandshakeException
Implements
Inherited Members

Remarks

A caller cancellation surfaces as OperationCanceledException instead. The inner exception of a timeout is the raw bound exception, an OperationCanceledException for the send bound, a TimeoutException for the update bound.

A guild removal during the join arrives as this type only while the handshake was still waiting, once the updates completed the registry's backstop raises an InvalidOperationException for the same cause instead.

Constructors

VoiceHandshakeException(string, Exception?)

Creates the exception.

public VoiceHandshakeException(string message, Exception? innerException = null)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this one, null when there is none.