File tree Expand file tree Collapse file tree 5 files changed +20
-10
lines changed
aws-json/tests/functional
aws-query/tests/functional
aws-restjson/tests/functional
aws-restxml/tests/functional Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ import { Readable } from "stream";
27
27
/**
28
28
* Throws an expected exception that contains the serialized request.
29
29
*/
30
- class EXPECTED_REQUEST_SERIALIZATION_ERROR {
31
- constructor ( readonly request : HttpRequest ) { }
30
+ class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
31
+ constructor ( readonly request : HttpRequest ) {
32
+ super ( ) ;
33
+ }
32
34
}
33
35
34
36
/**
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ import { Readable } from "stream";
18
18
/**
19
19
* Throws an expected exception that contains the serialized request.
20
20
*/
21
- class EXPECTED_REQUEST_SERIALIZATION_ERROR {
22
- constructor ( readonly request : HttpRequest ) { }
21
+ class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
22
+ constructor ( readonly request : HttpRequest ) {
23
+ super ( ) ;
24
+ }
23
25
}
24
26
25
27
/**
Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ import { Readable } from "stream";
35
35
/**
36
36
* Throws an expected exception that contains the serialized request.
37
37
*/
38
- class EXPECTED_REQUEST_SERIALIZATION_ERROR {
39
- constructor ( readonly request : HttpRequest ) { }
38
+ class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
39
+ constructor ( readonly request : HttpRequest ) {
40
+ super ( ) ;
41
+ }
40
42
}
41
43
42
44
/**
Original file line number Diff line number Diff line change @@ -51,8 +51,10 @@ import { Readable } from "stream";
51
51
/**
52
52
* Throws an expected exception that contains the serialized request.
53
53
*/
54
- class EXPECTED_REQUEST_SERIALIZATION_ERROR {
55
- constructor ( readonly request : HttpRequest ) { }
54
+ class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
55
+ constructor ( readonly request : HttpRequest ) {
56
+ super ( ) ;
57
+ }
56
58
}
57
59
58
60
/**
Original file line number Diff line number Diff line change @@ -60,8 +60,10 @@ import { Readable } from "stream";
60
60
/**
61
61
* Throws an expected exception that contains the serialized request.
62
62
*/
63
- class EXPECTED_REQUEST_SERIALIZATION_ERROR {
64
- constructor ( readonly request : HttpRequest ) { }
63
+ class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
64
+ constructor ( readonly request : HttpRequest ) {
65
+ super ( ) ;
66
+ }
65
67
}
66
68
67
69
/**
You can’t perform that action at this time.
0 commit comments