pub enum RpWebError {
ParseIntError(ParseIntError),
VarError(VarError),
IoError(Error),
DbError(Error),
Generic(String),
}
Variants§
Implementations§
Source§impl RpWebError
RpWebError::new(“error string”)
impl RpWebError
RpWebError::new(“error string”)
pub fn new(message: &str) -> RpWebError
Trait Implementations§
Source§impl Debug for RpWebError
impl Debug for RpWebError
Source§impl Display for RpWebError
impl Display for RpWebError
Source§impl Error for RpWebError
impl Error for RpWebError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for RpWebError
impl From<Error> for RpWebError
Source§fn from(err: stdIoError) -> RpWebError
fn from(err: stdIoError) -> RpWebError
Converts to this type from the input type.
Source§impl From<Error> for RpWebError
impl From<Error> for RpWebError
Source§fn from(err: dieselError) -> RpWebError
fn from(err: dieselError) -> RpWebError
Converts to this type from the input type.
Source§impl From<ParseIntError> for RpWebError
impl From<ParseIntError> for RpWebError
Source§fn from(err: numParseIntError) -> RpWebError
fn from(err: numParseIntError) -> RpWebError
Converts to this type from the input type.
Source§impl From<VarError> for RpWebError
impl From<VarError> for RpWebError
Source§fn from(err: stdVarError) -> RpWebError
fn from(err: stdVarError) -> RpWebError
Converts to this type from the input type.
Source§impl ResponseError for RpWebError
impl ResponseError for RpWebError
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations§
impl Freeze for RpWebError
impl !RefUnwindSafe for RpWebError
impl Send for RpWebError
impl Sync for RpWebError
impl Unpin for RpWebError
impl !UnwindSafe for RpWebError
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
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more