pub enum SoldbError {
Message(String),
AlreadyReported,
}Variants§
Message(String)
A failure described by a human-readable message.
AlreadyReported
The failure was already rendered for the user, typically as a JSON error document
on a --json code path. Callers must exit non-zero without printing anything else.
This exists so the exit path never has to inspect error text to decide whether a message was already shown.
Trait Implementations§
Source§impl Debug for SoldbError
impl Debug for SoldbError
Source§impl Display for SoldbError
impl Display for SoldbError
Source§impl Error for SoldbError
impl Error for SoldbError
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()
Auto Trait Implementations§
impl Freeze for SoldbError
impl RefUnwindSafe for SoldbError
impl Send for SoldbError
impl Sync for SoldbError
impl Unpin for SoldbError
impl UnsafeUnpin for SoldbError
impl UnwindSafe for SoldbError
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