Skip to content

Instantly share code, notes, and snippets.

@akondas
Created June 16, 2015 21:27
Show Gist options
  • Save akondas/4272d5d161e4e2931e11 to your computer and use it in GitHub Desktop.
Save akondas/4272d5d161e4e2931e11 to your computer and use it in GitHub Desktop.
<?php
try {
nonExistentFunction();
} catch (\EngineException $e) {
var_dump($e);
}
object(EngineException)#1 (7) {
["message":protected]=>
string(32) "Call to undefined function nonExistantFunction()"
["string":"BaseException":private]=>
string(0) ""
["code":protected]=>
int(1)
["file":protected]=>
string(17) "engine-exceptions.php"
["line":protected]=>
int(1)
["trace":"BaseException":private]=>
array(0) {
}
["previous":"BaseException":private]=>
NULL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment