mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
13 lines
284 B
JavaScript
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;
|