Skip to content
Snippets Groups Projects
errors.js 192 B
class ResponseError extends Error {
  constructor(response) {
    super(response.status.toString() + " " + response.statusText);
    this.response = response;
  }
}

export { ResponseError };