Class DbnEncodeException
- Namespace
- DatabentoDotNet.Dbn
- Assembly
- DatabentoDotNet.Dbn.dll
Thrown when a value cannot be represented in DBN: a symbol that is not ASCII or does not fit the stream's fixed symbol width, or metadata carrying a version this library will not emit.
public class DbnEncodeException : DbnException, ISerializable
- Inheritance
-
DbnEncodeException
- Implements
- Inherited Members
Remarks
The counterpart of upstream's Error::Encode and the Error::Conversion raised by
encode_fixed_len_cstr. Note that upstream truncates nothing: an over-long symbol is a
hard error there and here, because silently shortening a symbol would corrupt the symbology
mapping rather than surface a bug.
Constructors
DbnEncodeException()
Initializes a new instance of the DbnEncodeException class.
public DbnEncodeException()
DbnEncodeException(string)
Initializes a new instance of the DbnEncodeException class.
public DbnEncodeException(string message)
Parameters
messagestringA message describing the failure.
DbnEncodeException(string, Exception)
Initializes a new instance of the DbnEncodeException class.
public DbnEncodeException(string message, Exception innerException)