UNPKG

@appsemble/node-utils

Version:

NodeJS utilities used by Appsemble internally.

17 lines 566 B
/** * Used for throwing known Appsemble errors. * * This is used when the normal control flow needs to be aborted, but for reasons known. When an * instance of `AppsembleError` is thrown, the message will be logged, but not the stack trace. */ export class AppsembleError extends Error { /** * @param message The error message to show to the user. */ constructor(message) { super(message); this.name = 'AppsembleError'; Error.captureStackTrace(this, this.constructor); } } //# sourceMappingURL=AppsembleError.js.map