You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
343 B
Rust
16 lines
343 B
Rust
4 years ago
|
#[derive(Debug)]
|
||
|
pub enum Error {
|
||
|
IOError(std::io::Error),
|
||
|
InvalidObjectType(u32),
|
||
|
StringError(&'static str),
|
||
|
MissingSectionHeader(&'static str),
|
||
|
MissingSectionData(&'static str),
|
||
|
InvalidSectionData,
|
||
|
}
|
||
|
|
||
|
impl From<std::io::Error> for Error {
|
||
|
fn from(err: std::io::Error) -> Self {
|
||
|
Self::IOError(err)
|
||
|
}
|
||
|
}
|