pub enum GenError {
ReadSpec {
path: PathBuf,
source: Error,
},
WriteOutput {
path: PathBuf,
source: Error,
},
Parse {
kind: &'static str,
message: String,
},
Json(Error),
Yaml(Error),
Other(Error),
}Expand description
All errors produced by oxide-gen.
Variants§
ReadSpec
Failed to read the input spec from disk.
WriteOutput
Failed to write generated output to disk.
Parse
The spec could not be parsed.
Json(Error)
JSON (de)serialization failed.
Yaml(Error)
YAML (de)serialization failed.
Other(Error)
A generic catch-all.
Trait Implementations§
Source§impl Error for GenError
impl Error for GenError
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 GenError
impl !RefUnwindSafe for GenError
impl Send for GenError
impl Sync for GenError
impl Unpin for GenError
impl UnsafeUnpin for GenError
impl !UnwindSafe for GenError
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