Skip to content

Instantly share code, notes, and snippets.

@bcelenza
Created April 8, 2011 20:58
Show Gist options
  • Save bcelenza/910730 to your computer and use it in GitHub Desktop.
Save bcelenza/910730 to your computer and use it in GitHub Desktop.
try {
// do something
throw new Error('this is my error message');
catch (err) {
// do something else
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment