pg_async
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Errors and exceptions

Due to asynchronous nature of the library, there are few places where an exception can be thrown. Most of error are passed to callbacks.

Places where an exception can be thrown:

The rest of errors are passed via callbacks. If an error occurs inside a transaction, it is rolled back. If the error is an error sent by the server, it is passed to the query error callback. If an exception is thrown by any callback, it is passed to the transaction error callback. If the transaction error callback throws an error, it is silently caught and suppressed.