hpqtypes-1.5.3.0: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Internal.Error

Description

Definitions of exception types.

Synopsis

Documentation

data DetailedQueryError Source #

SQL query error. Reference: description of PQresultErrorField at http://www.postgresql.org/docs/devel/static/libpq-exec.html.

data ConversionError Source #

Data conversion error. Since it's polymorphic in error type, it nicely reports arbitrarily nested conversion errors.

Constructors

Exception e => ConversionError 

Fields

data ArrayItemError Source #

Array item error. Polymorphic in error type for the same reason as ConversionError.

Constructors

Exception e => ArrayItemError 

Fields

data RangeError t Source #

Range error for various data types.

Constructors

RangeError 

Fields

  • reRange :: [(t, t)]

    Allowed range (sum of acceptable ranges).

  • reValue :: t

    Provided value which is not in above range.