Skip to content

Instantly share code, notes, and snippets.

@phalcon
Created May 29, 2013 20:29
Show Gist options
  • Select an option

  • Save phalcon/5673569 to your computer and use it in GitHub Desktop.

Select an option

Save phalcon/5673569 to your computer and use it in GitHub Desktop.
<?php
class Exception1 extends Exception
{
}
class Exception2 extends Exception
{
}
try {
throw new Exception1("Error Processing Request");
} catch (Exception1 $e) {
throw $e;
} catch (Exception $e) {
echo $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment