File tree 3 files changed +13
-10
lines changed
modules/material-management/src
3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export class NotSupported extends Error {
4
+ code : string
5
+
6
+ constructor ( message ?: string ) {
7
+ super ( message )
8
+ Object . setPrototypeOf ( this , NotSupported . prototype )
9
+ this . code = 'NOT_SUPPORTED'
10
+ }
11
+ }
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ export {
76
76
readOnlyProperty ,
77
77
} from './immutable_class'
78
78
79
- export { needs , NotSupported } from './needs'
79
+ export { needs } from './needs'
80
80
export { cloneMaterial } from './clone_cryptographic_material'
81
81
82
82
export * from './types'
83
+ export { NotSupported } from './error'
Original file line number Diff line number Diff line change @@ -22,12 +22,3 @@ export function needs(
22
22
}
23
23
}
24
24
25
- export class NotSupported extends Error {
26
- code : string
27
-
28
- constructor ( message ?: string ) {
29
- super ( message )
30
- Object . setPrototypeOf ( this , NotSupported . prototype )
31
- this . code = 'NOT_SUPPORTED'
32
- }
33
- }
You can’t perform that action at this time.
0 commit comments