Created
July 10, 2015 12:14
-
-
Save wafe/0e13c84487094ead3b60 to your computer and use it in GitHub Desktop.
php not defined exception class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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