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