Guest User

Untitled

a guest
Feb 12th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2.  
  3. try {
  4. try {
  5. throw new Exception("hi thar");
  6. } catch (Exception $e) {
  7. throw $e;
  8. }
  9. } catch (Exeception $e) {
  10. var_dump($e->getTrace());
  11. }
  12.  
  13. output:
  14.  
  15. mentiad:phpunit jks$ php ~/butt.php
  16. PHP Fatal error: Uncaught exception 'Exception' with message 'hi thar' in /Users/jks/butt.php:5
  17. Stack trace:
  18. #0 {main}
  19. thrown in /Users/jks/butt.php on line 5
Advertisement
Add Comment
Please, Sign In to add comment