interface pq\Exception

A base interface for all pq\Exception classes.

Constants:

Example:


<?php

try {
    
$connection = new pq\Connection;
} catch (
pq\Exception $e) {
    
printf("%s (%d)\n"$e->getMessage(), $e->getCode());
}

?>

Namespaces, Interfaces and Classes: