powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Feature Request: exception handling mechanism for AppSyncResolver

Open rubenfonseca opened this issue 1 year ago • 0 comments

Use case

Discussed in https://github.com/awslabs/aws-lambda-powertools-python/discussions/2170

Originally posted by **adithep** April 27, 2023

For HTTP resolver, there are few ways to handle exception: https://awslabs.github.io/aws-lambda-powertools-python/2.14.1/core/event_handler/api_gateway/#exception-handling

But for AppSyncResolver, I have no idea who to handle exceptions

Solution/User Experience

Implement @app.exception_handler(ValueError) on the AppSyncResolver.

Alternative solutions

No response

Acknowledgment

rubenfonseca avatar May 01 '23 13:05 rubenfonseca