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/ssa/internal/__pycache__/exceptions.cpython-37.pyc
B

V�d�@sPdZddlZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)z/
This module contains custom exception classes
�Ncs@eZdZdZddd�eeed��fdd�Zdd	�d
d�Z�ZS)�SSAErrorz�
    SSA internal exception class.
    Adds an 'error' status and stores information about occurred exception.
    Provides JSON encoded info about occurred exception.
    �errorN)�flag�extra)�messagerrcs(t��|�d|_||_||_||_dS)Nr)�super�__init__Zstatus�reasonZ
extra_data�	type_flag)�selfrrr)�	__class__��H/opt/alt/python37/lib/python3.7/site-packages/ssa/internal/exceptions.pyrs
zSSAError.__init__zjson str)�returncCs,|jdkrd|jd�}n
d|ji}t�|�S)N�warningZsuccess)�resultrr)r
r	�json�dumps)r�msgr
r
r�__str__s


zSSAError.__str__)	�__name__�
__module__�__qualname__�__doc__�str�dictrr�
__classcell__r
r
)rrrsrc@seZdZdZdS)�
SSAAgentErrorz#
    SSA Agent exception class
    N)rrrrr
r
r
rr*src@seZdZdZdS)�SSAManagerErrorz%
    SSA Manager exception class
    N)rrrrr
r
r
rr0src@seZdZdZdS)�SSAMailerErrorz$
    SSA Mailer exception class
    N)rrrrr
r
r
rr6sr)rr�	Exceptionrrrrr
r
r
r�<module>
s