Struct qt_core::q_cbor_error::Code
source · pub struct Code(/* private fields */);
Expand description
This enum contains the possible error condition codes.
C++ enum: QCborError::Code
.
This enum contains the possible error condition codes.
Implementations§
source§impl Code
impl Code
sourcepub const UnknownError: Code = _
pub const UnknownError: Code = _
An unknown error occurred and no further details are available. (C++ enum variant: UnknownError = 1
)
sourcepub const AdvancePastEnd: Code = _
pub const AdvancePastEnd: Code = _
QCborStreamReader::next() was called but there are no more elements in the current context. (C++ enum variant: AdvancePastEnd = 3
)
sourcepub const InputOutputError: Code = _
pub const InputOutputError: Code = _
An I/O error with the QIODevice occurred. (C++ enum variant: InputOutputError = 4
)
sourcepub const GarbageAtEnd: Code = _
pub const GarbageAtEnd: Code = _
Data was found in the input stream after the last element. (C++ enum variant: GarbageAtEnd = 256
)
sourcepub const EndOfFile: Code = _
pub const EndOfFile: Code = _
The end of the input stream was unexpectedly reached while processing an element. (C++ enum variant: EndOfFile = 257
)
sourcepub const UnexpectedBreak: Code = _
pub const UnexpectedBreak: Code = _
The CBOR stream contains a Break where it is not allowed (data is corrupt and the error is not recoverable). (C++ enum variant: UnexpectedBreak = 258
)
sourcepub const UnknownType: Code = _
pub const UnknownType: Code = _
The CBOR stream contains an unknown/unparseable Type (data is corrupt and the and the error is not recoverable). (C++ enum variant: UnknownType = 259
)
sourcepub const IllegalType: Code = _
pub const IllegalType: Code = _
The CBOR stream contains a known type in a position it is not allowed to exist (data is corrupt and the error is not recoverable). (C++ enum variant: IllegalType = 260
)
sourcepub const IllegalNumber: Code = _
pub const IllegalNumber: Code = _
The CBOR stream appears to be encoding a number larger than 64-bit (data is corrupt and the error is not recoverable). (C++ enum variant: IllegalNumber = 261
)
sourcepub const IllegalSimpleType: Code = _
pub const IllegalSimpleType: Code = _
The CBOR stream contains a Simple Type encoded incorrectly (data is corrupt and the error is not recoverable). (C++ enum variant: IllegalSimpleType = 262
)
sourcepub const InvalidUtf8String: Code = _
pub const InvalidUtf8String: Code = _
The CBOR stream contains a text string that does not decode properly as UTF-8 (data is corrupt and the error is not recoverable). (C++ enum variant: InvalidUtf8String = 516
)
sourcepub const DataTooLarge: Code = _
pub const DataTooLarge: Code = _
CBOR string, map or array is too big and cannot be parsed by Qt (internal limitation, but the error is not recoverable). (C++ enum variant: DataTooLarge = 1024
)
sourcepub const NestingTooDeep: Code = _
pub const NestingTooDeep: Code = _
Too many levels of arrays or maps encountered while processing the input (internal limitation, but the error is not recoverable). (C++ enum variant: NestingTooDeep = 1025
)
sourcepub const UnsupportedType: Code = _
pub const UnsupportedType: Code = _
The CBOR stream contains a known type that the implementation does not support (internal limitation, but the error is not recoverable). (C++ enum variant: UnsupportedType = 1026
)