UNPKG

@crediblex.io/fineract-api-client

Version:
17 lines 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FineractApiError = void 0; class FineractApiError extends Error { constructor(message, statusCode, details, errorIdentifier) { super(message); this.name = "FineractApiError"; this.statusCode = statusCode; this.details = details; this.errorIdentifier = errorIdentifier; // This line is important for maintaining the correct prototype chain // and ensuring 'instanceof FineractApiError' works as expected. Object.setPrototypeOf(this, FineractApiError.prototype); } } exports.FineractApiError = FineractApiError; //# sourceMappingURL=errors.js.map