Enum postgres::error::Error [] [src]

pub enum Error {
    DbError(Box<DbError>),
    IoError(Error),
    WrongType(Type),
    InvalidColumn,
    Conversion(Box<Error + Sync + Send>),
}

An error encountered when communicating with the Postgres server.

Variants

DbError

An error reported by the Postgres server.

IoError

An error communicating with the Postgres server.

WrongType

An attempt was made to convert between incompatible Rust and Postgres types.

InvalidColumn

An attempt was made to read from a column that does not exist.

Conversion

An error converting between Postgres and Rust types.

Trait Implementations

impl Display for Error

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<DbError> for Error

fn from(err: DbError) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result