pub enum JMapError {
InvalidFieldType(u8),
FieldNotFound(String),
FieldAlreadyExists(String),
TypeMismatch {
expected: &'static str,
got: &'static str,
},
EntryIndexOutOfBounds {
index: usize,
len: usize,
},
BufferTooSmall {
expected: usize,
got: usize,
},
InvalidHeader,
EncodingError(String),
CsvError(String),
IoError(Error),
LookupFileNotFound(String),
InvalidCsvFieldDescriptor(String),
}Expand description
Errors that can occur during JMap operations
Variants§
InvalidFieldType(u8)
Invalid field type ID encountered during parsing
FieldNotFound(String)
Field not found in the container
FieldAlreadyExists(String)
Field already exists in the container
TypeMismatch
Type mismatch when setting a field value
EntryIndexOutOfBounds
Entry index out of bounds
BufferTooSmall
Buffer too small to contain valid BCSV data
InvalidHeader
Invalid BCSV header
EncodingError(String)
String encoding error
CsvError(String)
CSV parsing error
IoError(Error)
I/O error
LookupFileNotFound(String)
Lookup file not found
InvalidCsvFieldDescriptor(String)
Invalid CSV field descriptor format
Trait Implementations§
Source§impl Error for JMapError
impl Error for JMapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for JMapError
impl !RefUnwindSafe for JMapError
impl Send for JMapError
impl Sync for JMapError
impl Unpin for JMapError
impl !UnwindSafe for JMapError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more