Added example.php on how to handle exceptions and call