pub struct FloError { /* private fields */ }Expand description
The one error type for the flo workspace.
Implementations§
Source§impl FloError
impl FloError
Sourcepub fn new<T: Into<String>>(kind: FloErrorKind, message: T) -> Self
pub fn new<T: Into<String>>(kind: FloErrorKind, message: T) -> Self
Build an error from a category and a message.
Sourcepub fn kind(&self) -> FloErrorKind
pub fn kind(&self) -> FloErrorKind
The error’s category.
Sourcepub fn with_context<T: Into<String>>(self, ctx: T) -> Self
pub fn with_context<T: Into<String>>(self, ctx: T) -> Self
Attach a wrapped message.
pub fn with_source(self, source: impl Error + Send + Sync + 'static) -> Self
Sourcepub fn into_boxed(self) -> Box<FloError>
pub fn into_boxed(self) -> Box<FloError>
Box this error for use as Box<dyn Error> in streaming/reader contexts.
Trait Implementations§
Source§impl Error for FloError
impl Error for FloError
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 !RefUnwindSafe for FloError
impl !UnwindSafe for FloError
impl Freeze for FloError
impl Send for FloError
impl Sync for FloError
impl Unpin for FloError
impl UnsafeUnpin for FloError
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