UNPKG

fluent-results

Version:

Tiny, dependency-free TypeScript implementation of the Fluent Results pattern for railway-oriented programming.

18 lines (17 loc) 425 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PromiseRejection = void 0; const AError_1 = require("./AError"); class PromiseRejection extends AError_1.AError { /** * */ constructor(reason) { super(JSON.stringify(reason)); this._reason = reason; } get reason() { return this._reason; } } exports.PromiseRejection = PromiseRejection;