Build AWS SDK v2 service exceptions instead of constructing them
Apache 2.0Runs after software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. Replaces new XException(message) of a v2 service model exception with XException.builder().message(message).build().
org. openrewrite. aws. sdk. CompleteAwsServiceExceptionConstructorsmod run . --recipe= org. openrewrite. aws. sdk. CompleteAwsServiceExceptionConstructorsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.