Files
floci/src/main/java
Roberto Perez Alcolea 7d6cf6179d fix(sqs): translate Query-protocol error codes to JSON __type equivalents (#59)
The AWS SDK v2 uses the __type field in JSON error responses to instantiate
typed exceptions. Query-protocol codes such as
AWS.SimpleQueueService.NonExistentQueue were being forwarded verbatim into
the JSON __type field, causing the SDK to fall back to a generic SqsException
instead of QueueDoesNotExistException.

Add a jsonType() method to AwsException that maps Query-protocol codes to
their JSON-protocol equivalents (e.g. QueueDoesNotExist, QueueNameExists).
Both AwsExceptionMapper and the inline catch in AwsJsonController now call
jsonType() so the mapping is applied consistently across all code paths.
2026-03-31 17:10:18 -05:00
..