HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/xray/internal/__pycache__/exceptions.cpython-37.pyc
B

�*Ud�@s�dZddlZddlZe�d�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�Z	Gdd
�d
e�Z
Gdd�de�ZdS)z/
This module contains custom exception classes
�NZ
exc_loggercsDeZdZdZdddd�eeeed��fdd�Zdd	�d
d�Z�Z	S)�	XRayErrorz�
    X-Ray internal exception class.
    Adds an 'error' status and stores information about occurred exception.
    Provides JSON encoded info about occurred exception.
    �errorN)�flag�extra�errno)�messagerrrcsXt��|�d|_||_||_||_||_|dkrDtj||jd�ntj	||jd�dS)Nr�warning)r)
�super�__init__�status�reason�
extra_data�	type_flagr�loggerrr)�selfrrrr)�	__class__��I/opt/alt/python37/lib/python3.7/site-packages/xray/internal/exceptions.pyr
szXRayError.__init__zjson str)�returncCs,|jdkrd|jd�}n
d|ji}t�|�S)Nr�success)�resultrr)rr�json�dumps)r�msgrrr�__str__&s


zXRayError.__str__)
�__name__�
__module__�__qualname__�__doc__�str�dict�intr
r�
__classcell__rr)rrrs 
rc@seZdZdZdS)�XRayManagerErrorz(
    X-Ray Manager exception class.
    N)rrrrrrrrr#3sr#c@seZdZdZdS)�XRayAPIErrorz,
    X-Ray API exception special class.
    N)rrrrrrrrr$9sr$c@seZdZdZdS)�XRayAgentErrorz%
    X-Ray Agent exception class
    N)rrrrrrrrr%?sr%c@seZdZdZdS)�XRayMailerErrorz&
    X-Ray Mailer exception class
    N)rrrrrrrrr&Esr&c@seZdZdZdS)�SmartAdvicePluginErrorzD
    Error when something bad happened with Smart Advice plugin
    N)rrrrrrrrr'Ksr')rr�logging�	getLoggerr�	Exceptionrr#r$r%r&r'rrrr�<module>
s
"