#[non_exhaustive]pub enum RokError {
Show 14 variants
InvalidUtf8(String),
InvalidBase64(String),
ParseBytes {
expr: String,
reason: String,
},
ParseDuration {
expr: String,
reason: String,
},
InvalidJson(String),
InvalidUuid(String),
InvalidDate(String),
NotFound(String),
Unauthorized(String),
Forbidden(String),
ValidationFailure {
field: String,
reason: String,
},
TooManyRequests,
Internal(String),
Wrapped {
message: String,
source: Box<dyn Error + Send + Sync>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidUtf8(String)
InvalidBase64(String)
ParseBytes
ParseDuration
InvalidJson(String)
InvalidUuid(String)
InvalidDate(String)
NotFound(String)
Forbidden(String)
ValidationFailure
TooManyRequests
Internal(String)
Wrapped
Implementations§
Trait Implementations§
Source§impl Error for RokError
impl Error for RokError
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 RokError
impl !RefUnwindSafe for RokError
impl Send for RokError
impl Sync for RokError
impl Unpin for RokError
impl UnsafeUnpin for RokError
impl !UnwindSafe for RokError
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