UNPKG

@studyportals/sp-r2d2

Version:

A framework that contains various components used when developing projects that will be deployed via AWS λ.

13 lines 647 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExecutionError = void 0; const execution_error_reason_enum_1 = require("./execution-error-reason.enum"); class ExecutionError extends Error { constructor(message = undefined, reason = execution_error_reason_enum_1.ExecutionErrorReason.UNKNOWN, result = undefined) { super(message !== null && message !== void 0 ? message : 'An error was encountered while executing the request'); this.reason = reason; this.result = result; } } exports.ExecutionError = ExecutionError; //# sourceMappingURL=execution-error.class.js.map