Module 761969

447 characters · in 07003d094efd42da.js
Dependencies
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(l,t,d){d.d(t,{n:()=>e});var i=class extends Error{constructor(l,t,d,i,e){super(i),this.name="IncodeApiError",this.endpoint=l,this.status=t,this.httpStatus=d,void 0!==e&&(this.cause=e)}};function e(l,t){if(!("object"==typeof t&&null!==t&&"status"in t&&"statusText"in t&&"data"in t))throw t;let d=t.data??{},e="number"==typeof d.status?d.status:t.status,c=d.error??d.message??t.statusText??`HTTP ${t.status}`;throw new i(l,e,t.status,c,t)}}