Table of Contents

Class LiveProtocolException

Namespace
DatabentoDotNet.Live
Assembly
DatabentoDotNet.Live.dll

The live gateway said something the protocol does not allow, or stopped speaking in the middle of saying it.

public sealed class LiveProtocolException : LiveException, ISerializable
Inheritance
LiveProtocolException
Implements
Inherited Members

Remarks

Covers the control-line half of the session: a challenge that does not begin with cram=, a line that never terminates, and end-of-stream reached while a reply was still outstanding. Upstream folds all of these into Error::Internal and Error::Io.

Deliberately not DatabentoAuthenticationException. Both can end a handshake, but they mean opposite things: one says the credentials were refused, this one says the exchange never got far enough to judge them. Reporting a malformed challenge as a rejected key would send a caller to rotate credentials that were never at fault.

Constructors

LiveProtocolException()

Creates the exception with no message.

public LiveProtocolException()

LiveProtocolException(string)

Creates the exception with a message.

public LiveProtocolException(string message)

Parameters

message string

The message.

LiveProtocolException(string, Exception)

Creates the exception with a message and an underlying cause.

public LiveProtocolException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.