You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(events): throw ValidationErrors instead of untyped Errors (#34316)
### Issue # (if applicable)
Relates to #32569
### Reason for this change
Untyped Errors are not recommended.
### Description of changes
`ValidationErrors` everywhere
### Describe any new or updated permissions being added
None
### Description of how you validated changes
Existing tests. Exemptions granted as this is a refactor of existing code.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
// For now, we don't do the work for the support stack yet
435
-
thrownewError('Cannot create a cross-account or cross-region rule for an imported resource (create a stack with the right environment for the imported resource)');
435
+
thrownewValidationError('Cannot create a cross-account or cross-region rule for an imported resource (create a stack with the right environment for the imported resource)',this);
0 commit comments