@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
3 lines (2 loc) • 709 B
JavaScript
function R(R,e,s){return e in R?Object.defineProperty(R,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):R[e]=s,R}const e="NETWORK_ERROR",s="CANCEL",E="IMPLEMENTATION_ERROR",r="API_ERROR",t="ERROR",o="SCRIPT_ERROR",O="SDK_ERROR";class i extends Error{constructor(e,s,E){super(s),R(this,"cause",void 0),R(this,"options",void 0),this.name=i.errorTypes[e],this.options=E||{},this.cause=this.options.cause}}R(i,"errorTypes",{NETWORK_ERROR:e,CANCEL:s,IMPLEMENTATION_ERROR:E,API_ERROR:r,ERROR:t,SCRIPT_ERROR:o,SDK_ERROR:O});export{r as API_ERROR,s as CANCEL,t as ERROR,E as IMPLEMENTATION_ERROR,e as NETWORK_ERROR,o as SCRIPT_ERROR,O as SDK_ERROR,i as default};
//# sourceMappingURL=AdyenCheckoutError.js.map