HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/ssa/internal/__pycache__/exceptions.cpython-37.pyc
B

$�c�@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__�status�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)rr
�json�dumps)r�msgrrr�__str__s


zSSAError.__str__)	�__name__�
__module__�__qualname__�__doc__�str�dictrr�
__classcell__rr)r
rrsrc@seZdZdZdS)�
SSAAgentErrorz#
    SSA Agent exception class
    N)rrrrrrrrr*src@seZdZdZdS)�SSAManagerErrorz%
    SSA Manager exception class
    N)rrrrrrrrr0src@seZdZdZdS)�SSAMailerErrorz$
    SSA Mailer exception class
    N)rrrrrrrrr 6sr )rr�	Exceptionrrrr rrrr�<module>
s