eigent/backend/app/exception/exception.py
2025-08-12 01:16:39 +02:00

20 lines
479 B
Python

class UserException(Exception):
def __init__(self, code: int, description: str):
self.code = code
self.description = description
class TokenException(Exception):
def __init__(self, code: int, text: str):
self.code = code
self.text = text
class NoPermissionException(Exception):
def __init__(self, text: str):
self.text = text
class ProgramException(Exception):
def __init__(self, text: str):
self.text = text