#[non_exhaustive]pub enum AvroError {
General(String),
NYI(String),
EOF(String),
ArrowError(Box<ArrowError>),
IndexOutOfBound(usize, usize),
InvalidArgument(String),
ParseError(String),
SchemaError(String),
External(Box<dyn Error + Send + Sync>),
IoError(String, Error),
NeedMoreData(usize),
NeedMoreDataRange(Range<u64>),
}Expand description
Avro error enumeration
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
General(String)
General Avro error. Returned when code violates normal workflow of working with Avro data.
NYI(String)
“Not yet implemented” Avro error. Returned when functionality is not yet available.
EOF(String)
“End of file” Avro error. Returned when IO related failures occur, e.g. when there are not enough bytes to decode.
ArrowError(Box<ArrowError>)
Arrow error. Returned when reading into arrow or writing from arrow.
IndexOutOfBound(usize, usize)
Error when the requested index is more than the number of items expected
InvalidArgument(String)
Error indicating that an unexpected or bad argument was passed to a function.
ParseError(String)
Error indicating that a value could not be parsed.
SchemaError(String)
Error indicating that a schema is invalid.
External(Box<dyn Error + Send + Sync>)
An external error variant
IoError(String, Error)
Error during IO operations
NeedMoreData(usize)
Returned when a function needs more data to complete properly. The usize field indicates
the total number of bytes required, not the number of additional bytes.
NeedMoreDataRange(Range<u64>)
Returned when a function needs more data to complete properly.
The Range<u64> indicates the range of bytes that are needed.