Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Internal.Exception
Description
Definition of main exception type.
- data DBException = (Exception e, Show sql) => DBException {
- dbeQueryContext :: !sql
- dbeError :: !e
- rethrowWithContext :: IsSQL sql => sql -> SomeException -> IO a
Documentation
data DBException Source #
Main exception type. All exceptions thrown by the library are additionally wrapped in this type.
Constructors
(Exception e, Show sql) => DBException | |
Fields
|
Instances
rethrowWithContext :: IsSQL sql => sql -> SomeException -> IO a Source #
Rethrow supplied exception enriched with given SQL.