mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Xray works
This commit is contained in:
31
vpn/xray_api_v2/exceptions.py
Normal file
31
vpn/xray_api_v2/exceptions.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""Exceptions for xray-api library"""
|
||||
|
||||
|
||||
class XrayAPIError(Exception):
|
||||
"""Base exception for all xray-api errors"""
|
||||
pass
|
||||
|
||||
|
||||
class XrayConnectionError(XrayAPIError):
|
||||
"""Connection to Xray API server failed"""
|
||||
pass
|
||||
|
||||
|
||||
class XrayCommandError(XrayAPIError):
|
||||
"""Xray command execution failed"""
|
||||
pass
|
||||
|
||||
|
||||
class XrayConfigError(XrayAPIError):
|
||||
"""Invalid configuration"""
|
||||
pass
|
||||
|
||||
|
||||
class XrayNotFoundError(XrayAPIError):
|
||||
"""Resource not found"""
|
||||
pass
|
||||
|
||||
|
||||
class XrayValidationError(XrayAPIError):
|
||||
"""Validation error"""
|
||||
pass
|
Reference in New Issue
Block a user