Skip to content

Instantly share code, notes, and snippets.

@wendelnascimento
Created May 11, 2020 20:17
Show Gist options
  • Save wendelnascimento/4107e3480492925eac36ca06d35931cb to your computer and use it in GitHub Desktop.
Save wendelnascimento/4107e3480492925eac36ca06d35931cb to your computer and use it in GitHub Desktop.
class ExecutionError extends Error {
constructor(name, message, status = 400) {
super();
this.name = name;
this.message = message;
this.status = status;
}
}
module.exports = ExecutionError;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment