From a519cceb77fe9034f4872cfd158c8bfb274e66fe Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Tue, 6 Jul 2021 09:25:10 +0200 Subject: [PATCH] chore(event-handler): adjusts exception docstrings to not confuse AppSync customers --- aws_lambda_powertools/event_handler/exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aws_lambda_powertools/event_handler/exceptions.py b/aws_lambda_powertools/event_handler/exceptions.py index 56ea3e764d1..4a2838275b1 100644 --- a/aws_lambda_powertools/event_handler/exceptions.py +++ b/aws_lambda_powertools/event_handler/exceptions.py @@ -2,7 +2,7 @@ class ServiceError(Exception): - """Service Error""" + """API Gateway and ALB HTTP Service Error""" def __init__(self, status_code: int, msg: str): """ @@ -18,28 +18,28 @@ def __init__(self, status_code: int, msg: str): class BadRequestError(ServiceError): - """Bad Request Error""" + """API Gateway and ALB Bad Request Error (400)""" def __init__(self, msg: str): super().__init__(HTTPStatus.BAD_REQUEST, msg) class UnauthorizedError(ServiceError): - """Unauthorized Error""" + """API Gateway and ALB Unauthorized Error (401)""" def __init__(self, msg: str): super().__init__(HTTPStatus.UNAUTHORIZED, msg) class NotFoundError(ServiceError): - """Not Found Error""" + """API Gateway and ALB Not Found Error (404)""" def __init__(self, msg: str = "Not found"): super().__init__(HTTPStatus.NOT_FOUND, msg) class InternalServerError(ServiceError): - """Internal Server Error""" + """API Gateway and ALB Not Found Internal Server Error (500)""" def __init__(self, message: str): super().__init__(HTTPStatus.INTERNAL_SERVER_ERROR, message)