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

1import http 

2 

3from fss.common.exception.exception import ServiceException 

4 

5 

6class SystemException(ServiceException): 

7 """ 

8 System module exception 

9 """ 

10 

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 )