-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patherrors.d.ts
50 lines (46 loc) · 988 Bytes
/
errors.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Invalid JSON was received by the server.
* An error occurred on the server while parsing the JSON text.
*/
export class ParseError extends Error {
statusCode: -32700;
data: any;
message: "Parse error";
constructor(data?: any);
}
/**
* The JSON sent is not a valid Request object.
*/
export class InvalidRequest extends Error {
message: "Invalid Request";
data: any;
statusCode: -32600;
constructor(data?: any);
}
/**
* The method does not exist / is not available.
*/
export class MethodNotFound extends Error {
message: "Method not found";
data: any;
statusCode: -32601;
constructor(data?: any);
}
/**
* Invalid method parameter(s).
*/
export class InvalidParams extends Error {
message: "Invalid params";
data: any;
statusCode: -32602;
constructor(data?: any);
}
/**
* Internal JSON-RPC error.
*/
export class InternalError extends Error {
message: "Internal error";
data: any;
statusCode: -32603;
constructor(data?: any);
}