Enum diesel::result::Error [] [src]

pub enum Error {
    DatabaseError(DatabaseErrorKindBox<DatabaseErrorInformation + Send + Sync>),
    QueryBuilderError(Box<StdError + Send + Sync>),
    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.


You can return this variant inside of a transaction when you want to roll it back, but have no actual error to return. Diesel will never return this variant unless you gave it to us, and it can be safely ignored in error handling.

Trait Implementations

impl Debug for Error

Formats the value using the given formatter.

impl From<NulError> for Error

Performs the conversion.

impl Display for Error

Formats the value using the given formatter. Read more

impl StdError for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl PartialEq for Error

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.