mirror of
https://github.com/shuguangnet/Code-Master.git
synced 2025-01-24 00:18:44 +08:00
26 lines
804 B
TypeScript
26 lines
804 B
TypeScript
/* generated using openapi-typescript-codegen -- do not edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
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;
|
|
public readonly request: ApiRequestOptions;
|
|
|
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
super(message);
|
|
|
|
this.name = 'ApiError';
|
|
this.url = response.url;
|
|
this.status = response.status;
|
|
this.statusText = response.statusText;
|
|
this.body = response.body;
|
|
this.request = request;
|
|
}
|
|
}
|