You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/iti/common/exceptions/permission.py

13 lines
297 B
Python

from iti.exceptions import PermissionDenied
class PermissionDeniedException(PermissionDenied):
"""
权限拒绝异常
"""
def __init__(self, message: str = "无权访问", code=403):
self.message = message
self.code = code
super().__init__(self.message)