hpqtypes-1.7.0.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.

data ArrayDimensionMismatch Source #

Array dimenstion mismatch error.

Constructors

ArrayDimensionMismatch 

Fields

data AffectedRowsMismatch Source #

Affected/returned rows mismatch error.

Constructors

AffectedRowsMismatch 

Fields

  • rowsExpected :: ![(Int, Int)]

    Number of rows expected by the library, expressed as sum of acceptable ranges, eg. [(1,2), (5,10)] means that it would accept 1, 2, 5, 6, 7, 8, 9 or 10 affected/returned rows.

  • rowsDelivered :: !Int

    Number of affected/returned rows by the database.