Class LiveException
- Namespace
- DatabentoDotNet.Live
- Assembly
- DatabentoDotNet.Live.dll
Base class for every error the live client raises for itself, as opposed to the ones it lets through from the codec (DbnException) or from the socket.
public class LiveException : Exception, ISerializable
- Inheritance
-
LiveException
- Implements
- Derived
- Inherited Members
Remarks
Port of the live half of upstream's crate::Error (error.rs), which is one enum
spanning live, historical, and reference. A .NET exception hierarchy splits it by module
instead, so a caller can catch the live client's failures without also catching an HTTP error
from a historical query it never made.
Constructors
LiveException()
Creates the exception with no message.
public LiveException()
LiveException(string)
Creates the exception with a message.
public LiveException(string message)
Parameters
messagestringThe message.
LiveException(string, Exception)
Creates the exception with a message and an underlying cause.
public LiveException(string message, Exception innerException)