pub enum Exception {
System(SystemException),
User(UserException),
}Expand description
The outcome of an invocation that did not return normally.
Variants§
System(SystemException)
A system exception, raised by the target or by rustorb.
User(UserException)
A user exception raised by the target.
Implementations§
Source§impl Exception
impl Exception
Sourcepub fn as_system(&self) -> Option<&SystemException>
pub fn as_system(&self) -> Option<&SystemException>
The system exception, if this is one.
Sourcepub fn as_user(&self) -> Option<&UserException>
pub fn as_user(&self) -> Option<&UserException>
The user exception, if this is one.
Sourcepub fn repository_id(&self) -> &str
pub fn repository_id(&self) -> &str
The repository id of the exception.
Trait Implementations§
Source§impl Error for Exception
impl Error for Exception
1.30.0 · 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<SystemException> for Exception
impl From<SystemException> for Exception
Source§fn from(e: SystemException) -> Self
fn from(e: SystemException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Exception
impl !UnwindSafe for Exception
impl Freeze for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnsafeUnpin for Exception
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