Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cpapis/__pycache__/_errors.cpython-39.pyc
Ðазад
a � h � @ sH d Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zd S ) z Errors (and warnings) for cpapisc @ s e Zd ZdZdZdS )� CpAPIErrorz5Parent class for all errors running uapi/whmapi/cpapi�cpapisN��__name__� __module__�__qualname__�__doc__� r r �=/opt/imh-python/lib/python3.9/site-packages/cpapis/_errors.pyr s r c s, e Zd ZdZdZeed�� 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 s6 e Zd ZdZdZeee eeed�� 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 "