����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
saltstack
/
salt
/
extras-3.10
/
cpapis
/
__pycache__
/
Filename :
_errors.cpython-310.pyc
back
Copy
o �����<�f����������������������@���sH���d�Z�G�dd��de�ZG�dd��de�ZG�dd��de�ZG�dd��de�Zd S�) z Errors (and warnings) for cpapisc�������������������@�������e�Zd�ZdZdZdS�)� CpAPIErrorz5Parent class for all errors running uapi/whmapi/cpapi�cpapisN��__name__� __module__�__qualname__�__doc__��r ���r ����1/opt/saltstack/salt/extras-3.10/cpapis/_errors.pyr�����������r���c�����������������������s.���e�Zd�ZdZdZdedef��fdd�Z���ZS�)� CpAPIErrorMsgz�Raised when an API executes and returns valid JSON, but the operation fails and reports a specific error message. This differs per API functionr����msg�datac�������������������s���t����t|���||�_d�S��N)�super�__init__�strr���)�selfr ���r����� __class__r ���r ���r������s��� zCpAPIErrorMsg.__init__)r���r���r���r���r����dictr���� __classcell__r ���r ���r���r ���r��� ���s����r���c���������������� �������s>���e�Zd�ZdZdZdedee�dededef ��fdd �Z���ZS�) � CpAPIExecFaila9��Raised when an API call fails to run at all by exiting non-zero, timing out or returning invalid JSON Attributes: cmd: The list or str args passed to run(). returncode: The exit code of the process, negative for signals. stdout: The standard output stderr: The standard error r���r ����cmd�stdout�stderr� returncodec�������������������s(���t����|��||�_||�_||�_||�_d�S�r���)r���r���r���r���r���r���)r���r ���r���r���r���r���r���r ���r ���r���"���s ��� zCpAPIExecFail.__init__) r���r���r���r���r����list�intr���r���r ���r ���r���r ���r������s���� �����r���c�������������������@���r���)�CpAPIDeprecationz)Subclass of DeprecationWarning for cpapisr���Nr���r ���r ���r ���r ���r���2���r���r���N)r���� Exceptionr���r���r����DeprecationWarningr���r ���r ���r ���r ����<module>���s ����