Module error

Module error 

Source
Expand description

The error types.

These types are returned when hex decoding fails. The high-level ones are DecodeFixedLengthBytesError and DecodeVariableLengthBytesError which represent all possible ways in which hex decoding may fail in the two most common decoding scenarios.

Structs§

InvalidCharError
Invalid hex character.
InvalidLengthError
Tried to parse fixed-length hash from a string with the wrong length.
OddLengthStringError
Purported hex string had odd length.

Enums§

DecodeFixedLengthBytesError
Error returned when hex decoding bytes whose length is known at compile time.
DecodeVariableLengthBytesError
Error returned when hex decoding a hex string with variable length.