Safe Haskell | None |
---|---|
Language | Haskell2010 |
Definition of main exception type.
Synopsis
- 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.
(Exception e, Show sql) => DBException | |
|
Instances
Show DBException Source # | |
Defined in Database.PostgreSQL.PQTypes.Internal.Exception showsPrec :: Int -> DBException -> ShowS # show :: DBException -> String # showList :: [DBException] -> ShowS # | |
Exception DBException Source # | |
rethrowWithContext :: IsSQL sql => sql -> SomeException -> IO a Source #
Rethrow supplied exception enriched with given SQL.