pub enum Error {
NotInitialized(String),
AlreadyInitialized(String),
TicketNotFound(String),
ListNotFound(String),
ThreadNotFound(String),
PostNotFound(String),
Message(String),
Io(Error),
Json(Error),
}Expand description
All errors that wipe-core can produce.
Variants§
NotInitialized(String)
No .wipe board was found at the given path or any of its ancestors.
AlreadyInitialized(String)
A .wipe board already exists where one was about to be created.
TicketNotFound(String)
A ticket with the given ID does not exist.
ListNotFound(String)
A list with the given ID does not exist.
ThreadNotFound(String)
A forum thread with the given ID does not exist.
PostNotFound(String)
A forum post with the given ID does not exist.
Message(String)
A generic, contextual error message.
Io(Error)
An underlying filesystem error.
Json(Error)
A JSON (de)serialization error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn msg(m: impl Into<String>) -> Self
pub fn msg(m: impl Into<String>) -> Self
Build a Error::Message from anything string-like.
Sourcepub fn not_initialized(p: impl AsRef<Path>) -> Self
pub fn not_initialized(p: impl AsRef<Path>) -> Self
Build a Error::NotInitialized from a path.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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