Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
(Exception e, Show sql) => DBException | |
|
rethrowWithContext :: IsSQL sql => sql -> SomeException -> IO a Source #
Rethrow supplied exception enriched with given SQL.