UNPKG

@mojaloop/inter-scheme-proxy-cache-lib

Version:

Common component, that provides scheme proxy caching mapping (ISPC)

1 lines 1.1 kB
{"version":3,"sources":["../src/lib/errors.ts"],"sourcesContent":["import { ERROR_MESSAGES } from '../constants';\n\nexport class ProxyCacheError extends Error {\n constructor(message: string) {\n super(message);\n Error.captureStackTrace(this, this.constructor);\n this.name = this.constructor.name;\n }\n\n static unsupportedProxyCacheType() {\n return new ProxyCacheError(ERROR_MESSAGES.unsupportedProxyCacheType);\n }\n}\n\nexport class ValidationError extends ProxyCacheError {\n static invalidFormat(details?: string) {\n const erMessage = `${ERROR_MESSAGES.invalidFormat}${details ? ` - ${details}` : ''}`;\n return new ValidationError(erMessage);\n }\n}\n"],"mappings":";;;;;AAEO,IAAM,kBAAN,MAAM,yBAAwB,MAAM;AAAA,EACzC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,UAAM,kBAAkB,MAAM,KAAK,WAAW;AAC9C,SAAK,OAAO,KAAK,YAAY;AAAA,EAC/B;AAAA,EAEA,OAAO,4BAA4B;AACjC,WAAO,IAAI,iBAAgB,eAAe,yBAAyB;AAAA,EACrE;AACF;AAEO,IAAM,kBAAN,MAAM,yBAAwB,gBAAgB;AAAA,EACnD,OAAO,cAAc,SAAkB;AACrC,UAAM,YAAY,GAAG,eAAe,aAAa,GAAG,UAAU,MAAM,OAAO,KAAK,EAAE;AAClF,WAAO,IAAI,iBAAgB,SAAS;AAAA,EACtC;AACF;","names":[]}