error.d.ts
1.27 KB
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
/**
* A structure containing information about a service or networking error.
*/
export class AWSError extends Error {
/**
* A unique short code representing the error that was emitted.
*/
code: string;
/**
* A longer human readable error message.
*/
message: string;
/**
* Whether the error message is retryable.
*/
retryable: boolean;
/**
* In the case of a request that reached the service, this value contains the response status code.
*/
statusCode: number;
/**
* The date time object when the error occurred.
*/
time: Date;
/**
* Set when a networking error occurs to easily identify the endpoint of the request.
*/
hostname: string;
/**
* Set when a networking error occurs to easily identify the region of the request.
*/
region: string;
/**
* Amount of time (in seconds) that the request waited before being resent.
*/
retryDelay: number;
/**
* The unique request ID associated with the response.
*/
requestId: string;
/**
* Second request ID associated with the response from S3.
*/
extendedRequestId: string;
/**
* CloudFront request ID associated with the response.
*/
cfId: string;
}