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 CodesExamples:
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
()(IonErrorCodecode
); - Parameters:
IonErrorCode code
IonErrorCode Returns:corresponding error messageExamples: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
, stringfile
= __FILE__, size_tline
= __LINE__, Throwablenext
= null); - pure nothrow @nogc @safe this(string
msg
, Throwablenext
, stringfile
= __FILE__, size_tline
= __LINE__);
- class
IonMirException
: mir.ion.exception.IonException; - Mir Ion Exception Class
- class
IonParserMirException
: mir.ion.exception.IonMirException; - Mir Ion Parser Exception ClassThe exception is used for JSON parsing.
- size_t
location
; - pure nothrow @nogc @safe this(scope const(char)[]
msg
, size_tlocation
, stringfile
= __FILE__, size_tline
= __LINE__, Throwablenext
= null); - pure nothrow @nogc @safe this(scope const(char)[]
msg
, size_tlocation
, Throwablenext
, stringfile
= __FILE__, size_tline
= __LINE__);
- pure nothrow @nogc @property @trusted IonException
ionException
()(IonErrorCodecode
); - 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);
Copyright © 2016-2022 by Ilya Yaroshenko | Page generated by
Ddoc on Thu Mar 10 07:43:23 2022