SDK Exceptions that are not modeled by a service are treated as Opaque.
In Java, this lead to an IllegalStateException, instead of a NotAuthorized Exception.
This PR refactors the generated Java to capture un-modeled SDK exceptions,
such as NotAuthorized,
in the Opaque Error Types obj field,
and un-wrap them.
Description of changes:
The Above
Treat Markdown usage in documentation as warning instead of a danger; otherwise, current consumers (DB-ESDK) cannot pick up the latest Smithy-Dafny
Issue #, if available:
SDK Exceptions that are not modeled by a service are treated as Opaque. In Java, this lead to an IllegalStateException, instead of a NotAuthorized Exception. This PR refactors the generated Java to capture un-modeled SDK exceptions, such as NotAuthorized, in the Opaque Error Types
obj
field, and un-wrap them.Description of changes:
Replaces https://github.com/smithy-lang/smithy-dafny/pull/464
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.