vegdZddlZGddeZGddeZGddeZGd d eZdS) z/ This module contains custom exception classes Nc@eZdZdZddddededeffdZd d ZxZS) SSAErrorz SSA internal exception class. Adds an 'error' status and stores information about occurred exception. Provides JSON encoded info about occurred exception. errorN)flagextramessagerrct|d|_||_||_||_dS)Nr)super__init__statusreason extra_data type_flag)selfrrr __class__s N/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/internal/exceptions.pyr zSSAError.__init__s; !!!  returnjson strch|jdkr d|jd}n d|ji}tj|S)Nwarningsuccess)resultrr)rr jsondumps)rmsgs r__str__zSSAError.__str__sE >Y & &#;CC $+Cz#r)rr) __name__ __module__ __qualname____doc__strdictr r __classcell__)rs@rrrs 5<#c        rrceZdZdZdS) SSAAgentErrorz# SSA Agent exception class Nrrr r!rrr&r&*rr&ceZdZdZdS)SSAManagerErrorz% SSA Manager exception class Nr'r(rrr+r+0r)rr+ceZdZdZdS)SSAMailerErrorz$ SSA Mailer exception class Nr'r(rrr-r-6r)rr-)r!r Exceptionrr&r+r-r(rrr/s y8H h Xr