Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Internal.Exception
Description
Definition of main exception type.
Synopsis
- data DBException = (Exception e, Show sql) => DBException {
- dbeQueryContext :: !sql
- dbeBackendPid :: !BackendPid
- dbeError :: !e
- dbeCallStack :: CallStack
- rethrowWithContext :: (HasCallStack, IsSQL sql) => sql -> BackendPid -> 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
Exception DBException Source # | |
Defined in Database.PostgreSQL.PQTypes.Internal.Exception Methods toException :: DBException -> SomeException # fromException :: SomeException -> Maybe DBException # displayException :: DBException -> String # backtraceDesired :: DBException -> Bool # | |
Show DBException Source # | |
Defined in Database.PostgreSQL.PQTypes.Internal.Exception Methods showsPrec :: Int -> DBException -> ShowS # show :: DBException -> String # showList :: [DBException] -> ShowS # |
rethrowWithContext :: (HasCallStack, IsSQL sql) => sql -> BackendPid -> SomeException -> IO a Source #
Rethrow supplied exception enriched with given SQL.