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