1 # interface pq\Exception
3 A base interface for all pq\Exception classes.
8 An invalid argument was passed to a method (pq\Exception\InvalidArgumentException).
10 A runtime exception occurred (pq\Exception\RuntimeException).
12 The connection failed (pq\Exception\RuntimeException).
14 An input/output exception occurred (pq\Exception\RuntimeException).
16 Escaping an argument or identifier failed internally (pq\Exception\RuntimeException).
18 An object's constructor was not called (pq\Exception\BadMethodCallException).
20 Calling this method was not expected (yet) (pq\Exception\BadMethodCallException).
22 SQL syntax error (pq\Exception\DomainException).
24 Implementation domain error (pq\Exception\DomainException).
32 $connection = new pq\Connection;
33 } catch (pq\Exception $e) {
34 printf("%s (%d)\n", $e->getMessage(), $e->getCode());