Table of Contents

Class DbnException

Namespace
DatabentoDotNet.Dbn
Assembly
DatabentoDotNet.Dbn.dll

Base class for every DBN-specific failure this library raises.

public class DbnException : Exception, ISerializable
Inheritance
DbnException
Implements
Derived
Inherited Members

Remarks

Upstream Rust returns Result<T, dbn::Error> from every fallible operation and tells the failure kinds apart by enum variant. This port follows the project's error rule instead: outcomes a caller should expect and branch on use a Try* method, and genuinely exceptional outcomes throw. Malformed wire data is exceptional — a DBN stream that does not parse is not a value, it is a broken file — so it throws.

Every such throw is rooted here, so one catch (DbnException) covers the whole codec without also swallowing unrelated ArgumentExceptions from caller mistakes.

Constructors

DbnException()

Initializes a new instance of the DbnException class.

public DbnException()

DbnException(string)

Initializes a new instance of the DbnException class.

public DbnException(string message)

Parameters

message string

A message describing the failure.

DbnException(string, Exception)

Initializes a new instance of the DbnException class.

public DbnException(string message, Exception innerException)

Parameters

message string

A message describing the failure.

innerException Exception

The exception that caused this one.