#[non_exhaustive]pub enum Error {
Show 20 variants
Parse(Error),
Fetch(Error),
Operation(Error),
Consistency(Error),
Io(Error),
ExtraInputLeft,
EndOfInput,
AddressOutOfBounds,
ResolutionMismatch,
FullHashMismatch,
DiscriminantOverflow,
Zero,
OutOfBounds,
UnsupportedLength,
Utf8(FromUtf8Error),
UnknownExtension,
ExtensionType,
Unimplemented,
HashNotFound,
Interrupted,
}Expand description
Errors encountered during fetching an object. Mostly related to parsing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parse(Error)
Arbitrary parsing error.
Fetch(Error)
Arbitrary fetching error.
Operation(Error)
Arbitrary operation error.
Consistency(Error)
Arbitrary consistency error.
Io(Error)
ExtraInputLeft
Data left after an [Inline] got parsed.
EndOfInput
EOF.
AddressOutOfBounds
Overran [PointInput]’s [Address] vector.
ResolutionMismatch
[Address::hash] doesn’t match what [Resolve] returned.
FullHashMismatch
[FullHash::full_hash] doesn’t match [Singular::hash].
DiscriminantOverflow
Discriminant out of range for an [Enum].
Zero
Unepxected zero for a non-zero value.
OutOfBounds
Value out of bounds for a certain type.
UnsupportedLength
Current architecture (32-bit) is unable to handle lengths of this size.
Utf8(FromUtf8Error)
Not UTF-8.
UnknownExtension
[Resolve::extension] (or related things) were unable to resolve the extension.
ExtensionType
Extension type didn’t match what we asked for. This might be turned into panic later.
Unimplemented
HashNotFound
Interrupted
Implementations§
Source§impl Error
impl Error
Sourcepub fn parse(e: impl Into<Error>) -> Self
pub fn parse(e: impl Into<Error>) -> Self
Construct Error::Parse from another error.
Sourcepub fn fetch(e: impl Into<Error>) -> Self
pub fn fetch(e: impl Into<Error>) -> Self
Construct Error::Fetch from another error.
Sourcepub fn operation(e: impl Into<Error>) -> Self
pub fn operation(e: impl Into<Error>) -> Self
Construct Error::Operation from another error.
Sourcepub fn consistency(e: impl Into<Error>) -> Self
pub fn consistency(e: impl Into<Error>) -> Self
Construct Error::Consistency from another error.