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
overflowInSymbolId
zeroAnnotations
illegalBinaryData
illegalTimeStamp
wrongBoolDescriptor
wrongIntDescriptor
wrongFloatDescriptor
nullBool
nullInt
nullFloat
nullTimestamp
expectedNullValue
expectedBoolValue
expectedIntegerValue
expectedFloatingValue
expectedEnumValue
expectedStringValue
expectedCharValue
expectedStructValue
expectedListValue
expectedTimestampValue
requiredDefaultClassConstructor
integerOverflow
smallStringOverflow
smallArrayOverflow
unexpectedVersionMarker
cantParseValueStream
symbolIdIsTooLargeForTheCurrentSymbolTable
invalidLocalSymbolTable
sharedSymbolTablesAreUnsupported
unableToOpenFile
eof
errorReadingFile
errorReadingStream
tooManyElementsForStaticArray
notEnoughElementsForStaticArray
unusedAnnotations
missingAnnotation
cantConvertAnnotationToEnum
expectedIonStructForAnAssociativeArrayDeserialization
unexpectedComma
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 IonException: mir.serde.SerdeException;
Mir Ion Exception Class
pure nothrow @nogc @safe this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null);
pure nothrow @nogc @safe this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__);
class IonMirException: mir.ion.exception.IonException;
Mir Ion Exception Class
class IonParserMirException: mir.ion.exception.IonMirException;
Mir Ion Parser Exception Class
The exception is used for JSON parsing.
size_t location;
pure nothrow @nogc @safe this(scope const(char)[] msg, size_t location, string file = __FILE__, size_t line = __LINE__, Throwable next = null);
pure nothrow @nogc @safe this(scope const(char)[] msg, size_t location, Throwable next, string file = __FILE__, size_t line = __LINE__);
pure nothrow @nogc @property @trusted IonException ionException()(IonErrorCode code);
Parameters:
IonErrorCode code IonErrorCode
Returns:
Examples:
static assert(IonErrorCode.nop.ionException.msg == "IonException: unexpected NOP Padding", IonErrorCode.nop.ionException.msg);
static assert(IonErrorCode.none.ionException is null);