-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clients): generate service exceptions as classes (#3267)
* fix(smithy-client): decorateServiceException not to overwrite modeled members * feat(clients): throw exceptions as ServiceException class
- Loading branch information
1 parent
c827d5c
commit ca64fee
Showing
1,236 changed files
with
187,175 additions
and
448,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
clients/client-accessanalyzer/src/models/AccessAnalyzerServiceException.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { | ||
ServiceException as __ServiceException, | ||
ServiceExceptionOptions as __ServiceExceptionOptions, | ||
} from "@aws-sdk/smithy-client"; | ||
|
||
/** | ||
* Base exception class for all service exceptions from AccessAnalyzer service. | ||
*/ | ||
export class AccessAnalyzerServiceException extends __ServiceException { | ||
/** | ||
* @internal | ||
*/ | ||
constructor(options: __ServiceExceptionOptions) { | ||
super(options); | ||
Object.setPrototypeOf(this, AccessAnalyzerServiceException.prototype); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.