Enum golden_apple::Error [−][src]
pub enum Error {
Show 13 variants
VarIntTooLong,
ReaderError(Error),
WriterError(Error),
MissingData,
InvalidBool,
InvalidNBTHeader,
InvalidNBTType,
InvalidRootTag,
InvalidIdentifier,
EnumOutOfBound,
JsonParsingError(Error),
InvalidJsonRoot,
InvalidUUID(ParseIntError),
}
Expand description
Represents an error that can occur while using one of the libraries functions.
Variants
The datastream representing a VarInt exceded the maximum acceptable size.
ReaderError(Error)
An error occured while using a Read
type to parse.
Tuple Fields of ReaderError
0: Error
WriterError(Error)
An error occured while using a Write
type to parse.
Tuple Fields of WriterError
0: Error
There was not enough data present to parse.
A boolean had a value other than true or false.
While reading NBT, the stream started with a value other than 0x0a.
While reading NBT, the stream had an invalid data type ID.
While writing NBT, the root tag was not Tag::Compound.
The given identifier had more than one :
, rendering it invalid.
A given ID for an Enum was out of valid bounds for that type.
JsonParsingError(Error)
An error occured parsing JSON data using serde_json
.
Tuple Fields of JsonParsingError
0: Error
A JSON tag had a weird root structure.
InvalidUUID(ParseIntError)
A UUID consited of characters other than 0-f
Tuple Fields of InvalidUUID
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more