Table of Contents

Class DbnDecodeException

Namespace
DatabentoDotNet.Dbn
Assembly
DatabentoDotNet.Dbn.dll

Thrown when a byte sequence is not valid DBN: bad magic, an unsupported version, a truncated or self-inconsistent header, or a field whose raw value is not one the format defines.

public class DbnDecodeException : DbnException, ISerializable
Inheritance
DbnDecodeException
Implements
Inherited Members

Remarks

The counterpart of upstream's Error::Decode (and Error::Conversion for an out-of-range enum discriminant, which this port does not separate — both mean the same thing to a caller: these bytes are not decodable).

Constructors

DbnDecodeException()

Initializes a new instance of the DbnDecodeException class.

public DbnDecodeException()

DbnDecodeException(string)

Initializes a new instance of the DbnDecodeException class.

public DbnDecodeException(string message)

Parameters

message string

A message describing the failure.

DbnDecodeException(string, Exception)

Initializes a new instance of the DbnDecodeException class.

public DbnDecodeException(string message, Exception innerException)

Parameters

message string

A message describing the failure.

innerException Exception

The exception that caused this one.