hook-fetch
Version:
A lightweight and modern HTTP request library developed based on the native Fetch API of the browser, providing a user-friendly interface similar to Axios and powerful extensibility.
2 lines • 532 B
JavaScript
var e=class extends Error{#message;#name;#status;#statusText;#response;#config;constructor({message:e,status:t,statusText:n,response:r,config:i,name:a}){super(e),this.#message=e,this.#status=t,this.#statusText=n,this.#response=r,this.#config=i,this.#name=a??e}get message(){return this.#message}get status(){return this.#status}get statusText(){return this.#statusText}get response(){return this.#response}get config(){return this.#config}get name(){return this.#name}};export{e as ResponseError};
//# sourceMappingURL=error.mjs.map