@@ -41,57 +41,37 @@ export const isFrameworkException = (error: any): error is SmithyFrameworkExcept
41
41
return error . $frameworkError ;
42
42
} ;
43
43
44
- export class InternalFailureException extends SmithyException {
44
+ export class InternalFailureException {
45
45
readonly name = "InternalFailure" ;
46
46
readonly $fault = "server" ;
47
47
readonly statusCode = 500 ;
48
48
readonly $frameworkError = true ;
49
- constructor ( ) {
50
- super ( { name : "InternalFailure" , $fault : "server" } ) ;
51
- Object . setPrototypeOf ( this , InternalFailureException . prototype ) ;
52
- }
53
49
}
54
50
55
- export class UnknownOperationException extends SmithyException {
51
+ export class UnknownOperationException {
56
52
readonly name = "UnknownOperationException" ;
57
53
readonly $fault = "client" ;
58
54
readonly statusCode = 404 ;
59
55
readonly $frameworkError = true ;
60
- constructor ( ) {
61
- super ( { name : "UnknownOperationException" , $fault : "client" } ) ;
62
- Object . setPrototypeOf ( this , UnknownOperationException . prototype ) ;
63
- }
64
56
}
65
57
66
- export class SerializationException extends SmithyException {
58
+ export class SerializationException {
67
59
readonly name = "SerializationException" ;
68
60
readonly $fault = "client" ;
69
61
readonly statusCode = 400 ;
70
62
readonly $frameworkError = true ;
71
- constructor ( ) {
72
- super ( { name : "SerializationException" , $fault : "client" } ) ;
73
- Object . setPrototypeOf ( this , SerializationException . prototype ) ;
74
- }
75
63
}
76
64
77
- export class UnsupportedMediaTypeException extends SmithyException {
65
+ export class UnsupportedMediaTypeException {
78
66
readonly name = "UnsupportedMediaTypeException" ;
79
67
readonly $fault = "client" ;
80
68
readonly statusCode = 415 ;
81
69
readonly $frameworkError = true ;
82
- constructor ( ) {
83
- super ( { name : "UnsupportedMediaTypeException" , $fault : "client" } ) ;
84
- Object . setPrototypeOf ( this , UnsupportedMediaTypeException . prototype ) ;
85
- }
86
70
}
87
71
88
- export class NotAcceptableException extends SmithyException {
72
+ export class NotAcceptableException {
89
73
readonly name = "NotAcceptableException" ;
90
74
readonly $fault = "client" ;
91
75
readonly statusCode = 406 ;
92
76
readonly $frameworkError = true ;
93
- constructor ( ) {
94
- super ( { name : "NotAcceptableException" , $fault : "client" } ) ;
95
- Object . setPrototypeOf ( this , NotAcceptableException . prototype ) ;
96
- }
97
77
}
0 commit comments