mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
33 lines
595 B
Python
33 lines
595 B
Python
![]() |
"""
|
||
|
Custom exceptions for Xray Manager.
|
||
|
"""
|
||
|
|
||
|
|
||
|
class XrayError(Exception):
|
||
|
"""Base exception for all Xray-related errors."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class APIError(XrayError):
|
||
|
"""Error occurred during API communication."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class InboundNotFoundError(XrayError):
|
||
|
"""Inbound with specified tag not found."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class UserNotFoundError(XrayError):
|
||
|
"""User with specified email not found."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class ConfigurationError(XrayError):
|
||
|
"""Error in Xray configuration."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class CertificateError(XrayError):
|
||
|
"""Error related to TLS certificates."""
|
||
|
pass
|