Skip to content

Instantly share code, notes, and snippets.

@bartek
Created June 2, 2014 16:20
Show Gist options
  • Save bartek/e5f500c7c5981dbc2534 to your computer and use it in GitHub Desktop.
Save bartek/e5f500c7c5981dbc2534 to your computer and use it in GitHub Desktop.
function InvalidFieldException(message) {
this.message = (message || "");
this.name = 'InvalidFieldException';
this.stack = (new Error()).stack;
}
InvalidFieldException.prototype = Error.prototype;
// throw new InvalidFieldException("...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment