Skip to content

Instantly share code, notes, and snippets.

@wafe
Created July 10, 2015 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wafe/0e13c84487094ead3b60 to your computer and use it in GitHub Desktop.
Save wafe/0e13c84487094ead3b60 to your computer and use it in GitHub Desktop.
php not defined exception class
<?php
try
{
throw new Exception('an exception');
}
catch (NotDefinedExceptionClass $eae)
{
echo $eae->getMessage();
}
catch (Exception $exc)
{
echo $exc->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment