powertools-lambda-python
powertools-lambda-python copied to clipboard
Feature Request: exception handling mechanism for AppSyncResolver
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
- [X] This feature request meets Lambda Powertools Tenets
- [ ] Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript