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(Arc<dyn Error + Send + Sync>),
Str(String),
}
Expand description
An enumeration of GDS errors.
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(Arc<dyn Error + Send + Sync>)
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)>
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 !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