pub enum GriteError {
CommandFailed(String),
NotFound(String),
ParseError(String),
UnexpectedResponse(String),
InvalidId(String),
InvalidStateTransition(String),
Json(Error),
Io(Error),
}Expand description
Errors that can occur when interacting with Grite.
Variants§
CommandFailed(String)
Grit command failed to execute or returned an error.
NotFound(String)
Entity not found.
ParseError(String)
Failed to parse response from Grite.
UnexpectedResponse(String)
Unexpected response from Grite.
InvalidId(String)
Invalid ID format.
InvalidStateTransition(String)
Invalid state transition.
Json(Error)
JSON serialization/deserialization error.
Io(Error)
IO error.
Trait Implementations§
Source§impl Debug for GriteError
impl Debug for GriteError
Source§impl Display for GriteError
impl Display for GriteError
Source§impl Error for GriteError
impl Error for GriteError
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()
Source§impl From<Error> for GriteError
impl From<Error> for GriteError
Auto Trait Implementations§
impl Freeze for GriteError
impl !RefUnwindSafe for GriteError
impl Send for GriteError
impl Sync for GriteError
impl Unpin for GriteError
impl !UnwindSafe for GriteError
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