UNPKG

614 BTypeScriptView Raw
1import { HttpOperationResponse } from "./httpOperationResponse";
2import { WebResourceLike } from "./webResource";
3export declare class RestError extends Error {
4 static readonly REQUEST_SEND_ERROR: string;
5 static readonly REQUEST_ABORTED_ERROR: string;
6 static readonly PARSE_ERROR: string;
7 code?: string;
8 statusCode?: number;
9 request?: WebResourceLike;
10 response?: HttpOperationResponse;
11 body?: any;
12 constructor(message: string, code?: string, statusCode?: number, request?: WebResourceLike, response?: HttpOperationResponse, body?: any);
13}
14//# sourceMappingURL=restError.d.ts.map
\No newline at end of file