pub struct StackError { /* private fields */ }
Expand description
A simple error type that implements the ErrorStacks
trait.
Implementations§
Trait Implementations§
Source§impl Debug for StackError
impl Debug for StackError
Source§impl Default for StackError
impl Default for StackError
Source§fn default() -> StackError
fn default() -> StackError
Returns the “default value” for a type. Read more
Source§impl Display for StackError
impl Display for StackError
Source§impl Error for StackError
impl Error for StackError
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 ErrorStacks<ErrorCode> for StackError
impl ErrorStacks<ErrorCode> for StackError
Source§fn with_err_code(self, code: ErrorCode) -> Self
fn with_err_code(self, code: ErrorCode) -> Self
Set the error code.
Source§fn with_no_err_code(self) -> Self
fn with_no_err_code(self) -> Self
Remove the error code.
Source§fn with_err_uri(self, uri: String) -> Self
fn with_err_uri(self, uri: String) -> Self
Set the error URI.
Source§fn with_no_err_uri(self) -> Self
fn with_no_err_uri(self) -> Self
Remove the error URI.
Source§fn with_err_msg(self, message: impl Display + Send + Sync + 'static) -> Self
fn with_err_msg(self, message: impl Display + Send + Sync + 'static) -> Self
Set the error message.
Source§fn with_no_err_msg(self) -> Self
fn with_no_err_msg(self) -> Self
Remove the error message.
Auto Trait Implementations§
impl Freeze for StackError
impl !RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin for StackError
impl !UnwindSafe for StackError
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