mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 21:20:15 +00:00
20 lines
479 B
Python
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
|