pub enum GdsError {
RecordDecode(GdsRecordType, GdsDataType, u16),
RecordLen(usize),
InvalidDataType(u8),
InvalidRecordType(u8),
Unsupported(Option<GdsRecord>, Option<GdsContext>),
Parse {
msg: String,
record: GdsRecord,
recordnum: usize,
bytepos: u64,
ctx: Vec<GdsContext>,
},
Boxed(Box<dyn Error>),
Str(String),
}Expand description
§Gds Error Enumeration
Most errors are tied in some sense to parsing and decoding. Once a valid GdsLibrary is created in memory, it can generally be streamed to bytes.
Variants§
RecordDecode(GdsRecordType, GdsDataType, u16)
Invalid binary -> record conversion
RecordLen(usize)
Invalid record length
InvalidDataType(u8)
Invalid data type
InvalidRecordType(u8)
Invalid record type
Unsupported(Option<GdsRecord>, Option<GdsContext>)
Unsupported feature, in the decoded context
Parse
Parser Errors
Boxed(Box<dyn Error>)
Boxed (External) Errors
Str(String)
Other errors
Trait Implementations§
Source§impl Error for GdsError
impl Error for GdsError
1.30.0 · 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 GdsError
impl !RefUnwindSafe for GdsError
impl !Send for GdsError
impl !Sync for GdsError
impl Unpin for GdsError
impl !UnwindSafe for GdsError
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