pub enum GenoError {
Io(Error),
Parse {
content: String,
file: String,
location: Location,
},
NumberRange {
content: String,
file: String,
location: Location,
},
DuplicateType(String),
UndefinedType(String),
DuplicateField(String, String),
DuplicateVariant(String, String),
DuplicateVariantValue(String, String),
EmptyEnum(String),
InvalidMetadataFormat(),
}Expand description
This crates error enum
Variants§
Io(Error)
I/O error
Parse
Parsing error
Fields
NumberRange
Number out of range error
Fields
DuplicateType(String)
Duplicate type error
UndefinedType(String)
Undefined type error
DuplicateField(String, String)
Duplicate field error
DuplicateVariant(String, String)
Duplicate enum variant name
DuplicateVariantValue(String, String)
Duplicate enum value
EmptyEnum(String)
Enumeration has no variants
InvalidMetadataFormat()
Metadata format is not valid
Implementations§
Trait Implementations§
Source§impl Error for GenoError
impl Error for GenoError
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 GenoError
impl !RefUnwindSafe for GenoError
impl Send for GenoError
impl Sync for GenoError
impl Unpin for GenoError
impl UnsafeUnpin for GenoError
impl !UnwindSafe for GenoError
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