UNPKG

758 BTypeScriptView Raw
1export declare class SignatureValidationFailed extends Error {
2 signature?: string;
3 constructor(message: string, signature?: string);
4}
5export declare class JSONParseError extends Error {
6 raw: any;
7 constructor(message: string, raw: any);
8}
9export declare class RequestError extends Error {
10 code: string;
11 private originalError;
12 constructor(message: string, code: string, originalError: Error);
13}
14export declare class ReadError extends Error {
15 private originalError;
16 constructor(originalError: Error);
17}
18export declare class HTTPError extends Error {
19 statusCode: number;
20 statusMessage: string;
21 originalError: any;
22 constructor(message: string, statusCode: number, statusMessage: string, originalError: any);
23}