HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/xray/internal/__pycache__/exceptions.cpython-37.pyc
B

�V�d��@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_loggercsHeZdZdZddddd�eeeeed��fdd�Zd	d
�dd�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.
    �errorNT)�flag�extra�errno�
needs_logging)�messagerrrrcs\t��|�d|_||_||_||_||_|rX|dkrHtj||jd�ntj	||jd�dS)Nr�warning)r)
�super�__init__�status�reason�
extra_data�	type_flagr�loggerr	r)�selfrrrrr)�	__class__��I/opt/alt/python37/lib/python3.7/site-packages/xray/internal/exceptions.pyrszXRayError.__init__zjson str)�returncCs,|jdkrd|jd�}n
d|ji}t�|�S)Nr	�success)�resultr	r)rr
�json�dumps)r�msgrrr�__str__(s

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