Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

mir.ion.exception

Mir Ion error codes, messages, and exceptions.
enum IonErrorCode: int;
Ion Error Codes
Examples:
static assert(!IonErrorCode.none);
static assert(IonErrorCode.none == IonErrorCode.init);
static assert(IonErrorCode.nop > 0);
none
nop
jsonUnexpectedValue
jsonUnexpectedEnd
symbolTableCantInsertKey
illegalTypeDescriptor
unexpectedEndOfData
unexpectedIonType
overflowInParseVarUInt
overflowInParseVarInt
overflowInIntegerValue
overflowInDecimalValue
zeroAnnotations
illegalBinaryData
illegalTimeStamp
wrongBoolDescriptor
wrongIntDescriptor
wrongFloatDescriptor
nullBool
nullInt
nullFloat
nullTimestamp
expectedNullValue
expectedBoolValue
expectedIntegerValue
expectedFloatingValue
expectedEnumValue
expectedStringValue
expectedCharValue
expectedStructValue
expectedListValue
requiredDefaultClassConstructor
integerOverflow
smallStringOverflow
smallArrayOverflow
pure nothrow @nogc @property @safe string ionErrorMsg(IonErrorCode code);
Parameters:
IonErrorCode code IonErrorCode
Returns:
corresponding error message
Examples:
static assert(IonErrorCode.nop.ionErrorMsg == "unexpected NOP Padding", IonErrorCode.nop.ionErrorMsg);
static assert(IonErrorCode.none.ionErrorMsg is null);
class MirIonException: mir.serde.SerdeException;
Mir Ion Exception Class
pure nothrow @nogc @safe this(string msg, string file = __FILE__, int line = __LINE__);
pure nothrow @nogc @property @trusted MirIonException ionException(IonErrorCode code);
Parameters:
IonErrorCode code IonErrorCode
Examples:
static assert(IonErrorCode.nop.ionException.msg == "MirIonException: unexpected NOP Padding", IonErrorCode.nop.ionException.msg);
static assert(IonErrorCode.none.ionException is null);