mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
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.