Coverage for fss\starter\system\exception\system.py: 80%
5 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-12 22:20 +0800
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-12 22:20 +0800
1import http
3from fss.common.exception.exception import ServiceException
6class SystemException(ServiceException):
7 """
8 System module exception
9 """
11 def __init__(self, code: int, msg: str, status_code: int = http.HTTPStatus.OK):
12 super(SystemException, self).__init__(
13 code=code, msg=msg, status_code=status_code
14 )