Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/uaclient/api/__pycache__/errors.cpython-310.pyc
o

��pf��@s�ddlmZddlmZmZddlmZddlmZddl	m
Z
dedefdd	�ZGd
d�de�Z
Gdd
�d
e
�ZGdd�de
�ZGdd�de
�ZGdd�de
�ZGdd�de
�ZdS)�)�messages)�APIResponse�ErrorWarningObject)�UbuntuProError)�get_pro_environment)�check_for_new_version�	exception�returnc	Cs�t|ttf�rt|j|jpd|jj|jpid�}n
tt	|�d|jjid�}g}t
�}|r@|�ttj
j|d�jtj
jid��tdddddd	�tt����D�ii|g|d
�S)Nzgeneric-)�title�code�meta)�version�v1�failurer�environment_varscSsg|]	\}}||d��qS))�name�value�)�.0rrrr�5/usr/lib/python3/dist-packages/uaclient/api/errors.py�
<listcomp>)s��zerror_out.<locals>.<listcomp>)�_schema_version�result�data�errors�warnings)�
isinstancer�APIErrorr�msg�msg_code�	__class__�__name__�additional_info�strr�appendr�WARN_NEW_VERSION_AVAILABLE�formatrr�sortedr�items)r�errorr�new_versionrrr�	error_outsJ
�
����
����r+c@seZdZdS)rN)r!�
__module__�__qualname__rrrrr4src@�eZdZejZdS)�APIInvalidEndpointN)r!r,r-r�E_API_INVALID_ENDPOINT�_formatted_msgrrrrr/8�
r/c@r.)�
APIMissingArgN)r!r,r-r�E_API_MISSING_ARGr1rrrrr3<r2r3c@r.)�APINoArgsForEndpointN)r!r,r-r�E_API_NO_ARG_FOR_ENDPOINTr1rrrrr5@r2r5c@r.)�APIJSONDataFormatErrorN)r!r,r-r�E_API_JSON_DATA_FORMAT_ERRORr1rrrrr7Dr2r7c@r.)�APIBadArgsFormatN)r!r,r-r�E_API_BAD_ARGS_FORMATr1rrrrr9Hr2r9N)�uaclientr�uaclient.api.data_typesrr�uaclient.exceptionsr�
uaclient.utilr�uaclient.versionr�	Exceptionr+rr/r3r5r7r9rrrr�<module>s,

Spamworldpro Mini