hpqtypes-1.4.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.PQTypes.Internal.Exception

Description

Definition of main exception type.

Synopsis

Documentation

data DBException Source

Main exception type. All exceptions thrown by the library are additionally wrapped in this type.

Constructors

forall e sql . (Exception e, Show sql) => DBException 

Fields

dbeQueryContext :: !sql

Last SQL query that was executed.

dbeError :: !e

Specific error.

rethrowWithContext :: IsSQL sql => sql -> SomeException -> IO a Source

Rethrow supplied exception enriched with given SQL.