%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/ssa/internal/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/ssa/internal/__pycache__/exceptions.cpython-37.pyc

B

r�b�@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�warning�success)�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)rrrrrrrrr 0sr c@seZdZdZdS)�SSAMailerErrorz$
    SSA Mailer exception class
    N)rrrrrrrrr!6sr!)rr�	Exceptionrrr r!rrrr�<module>
s


Zerion Mini Shell 1.0