Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created May 10, 2012 14:58
Show Gist options
  • Save aertmann/2653698 to your computer and use it in GitHub Desktop.
Save aertmann/2653698 to your computer and use it in GitHub Desktop.
try {
broken();
} catch(\MyFirstException $e) {
echo $e->getMessage();
} catch(\MySecondException $e) {
echo $e->getMessage();
} catch {\Exception $e) {
echo $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment