Enum diesel::result::ConnectionError [] [src]

pub enum ConnectionError {
    InvalidCString(NulError),
    BadConnection(String),
    InvalidConnectionUrl(String),
    CouldntSetupConfiguration(Error),
    // some variants omitted
}

Errors which can occur during Connection::establish

Variants

The connection URL contained a NUL byte.

The database returned an error.

The connection URL could not be parsed.

Diesel could not configure the database connection.

Diesel may try to automatically set session specific configuration values, such as UTF8 encoding, or enabling the || operator on MySQL. This variant is returned if an error occurred executing the query to set those options. Diesel will never affect global configuration.

Trait Implementations

impl Debug for ConnectionError
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ConnectionError
[src]

[src]

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

[src]

This method tests for !=.

impl From<NulError> for ConnectionError
[src]

[src]

Performs the conversion.

impl Display for ConnectionError
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for ConnectionError
[src]

[src]

A short description of the error. Read more

[src]

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

Auto Trait Implementations