2016-06-23 15:55:57 +02:00

13 lines
284 B
JavaScript

'use strict';
const ServerlessError = class ServerlessError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
this.message = message;
Error.captureStackTrace(this, this.constructor);
}
};
module.exports = ServerlessError;