Skip to content

Commit 5a0a456

Browse files
committed
change class description
1 parent 4cd0038 commit 5a0a456

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

aws_lambda_powertools/event_handler/exceptions.py

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

33

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

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

1919

2020
class BadRequestError(ServiceError):
21-
"""API Gateway and ALB Bad Request Error (400)"""
21+
"""Powertools class 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-
"""API Gateway and ALB Unauthorized Error (401)"""
28+
"""Powertools class Unauthorized Error (401)"""
2929

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

3333

3434
class ForbiddenError(ServiceError):
35-
"""API Gateway and ALB Forbidden Error (403)"""
35+
"""Powertools class Forbidden Error (403)"""
3636

3737
def __init__(self, msg: str):
3838
super().__init__(HTTPStatus.FORBIDDEN, msg)
3939

4040

4141
class NotFoundError(ServiceError):
42-
"""API Gateway and ALB Not Found Error (404)"""
42+
"""Powertools class Not Found Error (404)"""
4343

4444
def __init__(self, msg: str = "Not found"):
4545
super().__init__(HTTPStatus.NOT_FOUND, msg)
4646

4747

4848
class RequestTimeoutError(ServiceError):
49-
"""API Gateway and ALB Request Timeout Error (408)"""
49+
"""Powertools class Request Timeout Error (408)"""
5050

5151
def __init__(self, msg: str):
5252
super().__init__(HTTPStatus.REQUEST_TIMEOUT, msg)
5353

5454

5555
class RequestEntityTooLargeError(ServiceError):
56-
"""API Gateway and ALB Request Entity Too Large Error (413)"""
56+
"""Powertools class Request Entity Too Large Error (413)"""
5757

5858
def __init__(self, msg: str):
5959
super().__init__(HTTPStatus.REQUEST_ENTITY_TOO_LARGE, msg)
6060

6161

6262
class InternalServerError(ServiceError):
63-
"""API Gateway and ALB Internal Server Error (500)"""
63+
"""Powertools class Internal Server Error (500)"""
6464

6565
def __init__(self, message: str):
6666
super().__init__(HTTPStatus.INTERNAL_SERVER_ERROR, message)
6767

6868

6969
class ServiceUnavailableError(ServiceError):
70-
"""API Gateway and ALB Service Unavailable Error (503)"""
70+
"""Powertools class Service Unavailable Error (503)"""
7171

7272
def __init__(self, msg: str):
7373
super().__init__(HTTPStatus.SERVICE_UNAVAILABLE, msg)

0 commit comments

Comments
 (0)