Enum diesel::result::Error
[−]
[src]
pub enum Error {
InvalidCString(NulError),
DatabaseError(DatabaseErrorKind, Box<DatabaseErrorInformation + Send>),
NotFound,
QueryBuilderError(Box<StdError + Send>),
DeserializationError(Box<StdError + Send + Sync>),
SerializationError(Box<StdError + Send + Sync>),
// some variants omitted
}The generic "things can fail in a myriad of ways" enum. This type is not indended to be exhaustively matched, and new variants may be added in the future without a major version bump.
Variants
InvalidCString(NulError)DatabaseError(DatabaseErrorKind, Box<DatabaseErrorInformation + Send>)NotFoundQueryBuilderError(Box<StdError + Send>)DeserializationError(Box<StdError + Send + Sync>)SerializationError(Box<StdError + Send + Sync>)
Trait Implementations
impl Debug for Error[src]
impl From<NulError> for Error[src]
impl From<TransactionError<Error>> for Error[src]
fn from(e: TransactionError<Error>) -> Self[src]
Performs the conversion.
impl Display for Error[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl StdError for Error[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
The lower-level cause of this error, if any. Read more