20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
import type { ApiResult } from './ApiResult';
|
|
|
|
export class ApiError extends Error {
|
|
public readonly url: string;
|
|
public readonly status: number;
|
|
public readonly statusText: string;
|
|
public readonly body: any;
|
|
|
|
constructor(response: ApiResult, message: string) {
|
|
super(message);
|
|
|
|
this.url = response.url;
|
|
this.status = response.status;
|
|
this.statusText = response.statusText;
|
|
this.body = response.body;
|
|
}
|
|
} |