Skip to content

Instantly share code, notes, and snippets.

@benw
Created January 22, 2010 06:29
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 benw/283555 to your computer and use it in GitHub Desktop.
Save benw/283555 to your computer and use it in GitHub Desktop.
Throwing from main
uncaughtException catches "thrown by main"
Timeout 1 throws
Catcher 1 catches "thrown by Timeout 1"
Catcher 1 returns
Timeout 2 throws
Catcher 2 catches "thrown by Timeout 2"
Catcher 2 throws
uncaughtException catches "thrown by Catcher 2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment