Skip to content

Instantly share code, notes, and snippets.

View jhsware's full-sized avatar

jhsware

  • Stockholm
View GitHub Profile
/**
* Common ancestor of all operational errors allowing
* for more catch all checks.
*/
class OperationalError extends Error {
constructor(name, statusCode, type, message, details, err) {
super(message);
this.name = name;
this.statusCode = statusCode;
this.type = type;