Skip to content

Commit a519cce

Browse files
committed
chore(event-handler): adjusts exception docstrings to not confuse AppSync customers
1 parent 33f80fd commit a519cce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: aws_lambda_powertools/event_handler/exceptions.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class ServiceError(Exception):
5-
"""Service Error"""
5+
"""API Gateway and ALB HTTP Service Error"""
66

77
def __init__(self, status_code: int, msg: str):
88
"""
@@ -18,28 +18,28 @@ def __init__(self, status_code: int, msg: str):
1818

1919

2020
class BadRequestError(ServiceError):
21-
"""Bad Request Error"""
21+
"""API Gateway and ALB Bad Request Error (400)"""
2222

2323
def __init__(self, msg: str):
2424
super().__init__(HTTPStatus.BAD_REQUEST, msg)
2525

2626

2727
class UnauthorizedError(ServiceError):
28-
"""Unauthorized Error"""
28+
"""API Gateway and ALB Unauthorized Error (401)"""
2929

3030
def __init__(self, msg: str):
3131
super().__init__(HTTPStatus.UNAUTHORIZED, msg)
3232

3333

3434
class NotFoundError(ServiceError):
35-
"""Not Found Error"""
35+
"""API Gateway and ALB Not Found Error (404)"""
3636

3737
def __init__(self, msg: str = "Not found"):
3838
super().__init__(HTTPStatus.NOT_FOUND, msg)
3939

4040

4141
class InternalServerError(ServiceError):
42-
"""Internal Server Error"""
42+
"""API Gateway and ALB Not Found Internal Server Error (500)"""
4343

4444
def __init__(self, message: str):
4545
super().__init__(HTTPStatus.INTERNAL_SERVER_ERROR, message)

0 commit comments

Comments
 (0)