mirror of
https://github.com/insistence/RuoYi-Vue3-FastAPI.git
synced 2026-09-26 14:23:49 +00:00
29 lines
639 B
Python
29 lines
639 B
Python
class LoginException(Exception):
|
|
"""
|
|
自定义登录异常LoginException
|
|
"""
|
|
|
|
def __init__(self, data: str = None, message: str = None):
|
|
self.data = data
|
|
self.message = message
|
|
|
|
|
|
class AuthException(Exception):
|
|
"""
|
|
自定义令牌异常AuthException
|
|
"""
|
|
|
|
def __init__(self, data: str = None, message: str = None):
|
|
self.data = data
|
|
self.message = message
|
|
|
|
|
|
class PermissionException(Exception):
|
|
"""
|
|
自定义权限异常PermissionException
|
|
"""
|
|
|
|
def __init__(self, data: str = None, message: str = None):
|
|
self.data = data
|
|
self.message = message
|