Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try {
- try {
- throw new Exception("hi thar");
- } catch (Exception $e) {
- throw $e;
- }
- } catch (Exeception $e) {
- var_dump($e->getTrace());
- }
- output:
- mentiad:phpunit jks$ php ~/butt.php
- PHP Fatal error: Uncaught exception 'Exception' with message 'hi thar' in /Users/jks/butt.php:5
- Stack trace:
- #0 {main}
- thrown in /Users/jks/butt.php on line 5
Advertisement
Add Comment
Please, Sign In to add comment