@mojaloop/inter-scheme-proxy-cache-lib
Version:
Common component, that provides scheme proxy caching mapping (ISPC)
27 lines (25 loc) • 741 B
JavaScript
import {
ERROR_MESSAGES
} from "./chunk-7FWCQSX5.mjs";
// src/lib/errors.ts
var ProxyCacheError = class _ProxyCacheError extends Error {
constructor(message) {
super(message);
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
}
static unsupportedProxyCacheType() {
return new _ProxyCacheError(ERROR_MESSAGES.unsupportedProxyCacheType);
}
};
var ValidationError = class _ValidationError extends ProxyCacheError {
static invalidFormat(details) {
const erMessage = `${ERROR_MESSAGES.invalidFormat}${details ? ` - ${details}` : ""}`;
return new _ValidationError(erMessage);
}
};
export {
ProxyCacheError,
ValidationError
};
//# sourceMappingURL=chunk-CNBILPR3.mjs.map