UNPKG

@sambruca/xe-client

Version:

Node client for interactive with XE API

23 lines 604 B
export class XERequestError { name; message; query; path; xeResponse; constructor(query, path, xeResponse) { this.message = `Error occurred fetching rates from XE /${path} with params ${JSON.stringify(query)}`; this.name = this.constructor.name; this.query = query; this.path = path; this.xeResponse = xeResponse; } } export class InvalidCCYError { name; message; constructor(ccy) { this.message = `${ccy} is not a valid currency`; this.name = this.constructor.name; } } //# sourceMappingURL=types.js.map