• File: exceptions.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/ssa/internal/__pycache__/exceptions.cpython-37.pyc
  • Date Modified: 06/05/2023 11:41 AM
  • File size: 1.68 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

ed@sPdZddlZGdddeZGdddeZGdddeZGd	d
d
eZdS)z/
This module contains custom exception classes
Ncs@eZdZdZdddeeedfddZdd	d
dZZS)SSAErrorz
    SSA internal exception class.
    Adds an 'error' status and stores information about occurred exception.
    Provides JSON encoded info about occurred exception.
    errorN)flagextra)messagerrcs(t|d|_||_||_||_dS)Nr)super__init__statusreasonZ
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)NwarningZsuccess)resultrr)rr
jsondumps)rmsgrrr__str__s


zSSAError.__str__)	__name__
__module____qualname____doc__strdictrr
__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