Enum gds21::GdsError [−][src]
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
Tuple Fields of RecordDecode
RecordLen(usize)
Invalid record length
Tuple Fields of RecordLen
0: usize
InvalidDataType(u8)
Invalid data type
Tuple Fields of InvalidDataType
0: u8
InvalidRecordType(u8)
Invalid record type
Tuple Fields of InvalidRecordType
0: u8
Unsupported(Option<GdsRecord>, Option<GdsContext>)
Unsupported feature, in the decoded context
Tuple Fields of Unsupported
0: Option<GdsRecord>
1: Option<GdsContext>
Parser Errors
Boxed (External) Errors
Str(String)
Other errors
Tuple Fields of Str
0: String