%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/uaclient/api/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/uaclient/api/__pycache__/errors.cpython-312.pyc

�

�ϴf�����ddlmZddlmZmZddlmZddlmZddl	m
Z
dedefd�ZGd	�d
e�Z
Gd�de
�ZGd
�de
�ZGd�de
�ZGd�de
�ZGd�de
�Zy)�)�messages)�APIResponse�ErrorWarningObject)�UbuntuProError)�get_pro_environment)�check_for_new_version�	exception�returnc
��t|ttf�rLt|j|j
xsd|jjz|jxsi��}n.tt|�d|jjzi��}g}t�}|r]|jttjj|��jtjji���t!ddddt#t%�j'��D��cgc]
\}}||d���c}}ii|g|�	�Scc}}w)
Nzgeneric-)�title�code�meta)�version�v1�failurer�environment_vars)�name�value)�_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_versionrrs      �5/usr/lib/python3/dist-packages/uaclient/api/errors.py�	error_outr*s;���)�n�h�7�8�"��-�-��#�#�9��I�/�/�8�8�8��*�*�0�b�	
��#��i�.��i�1�1�:�:�:��
���H�'�)�K�������9�9�@�@�'�A���#��8�8�=�=��
�	
�����"�'-�.A�.C�.I�.I�.K�'L�%�#��e�"�E�2�%��
��w��
�
��
%s�)Ec��eZdZy)rN)r�
__module__�__qualname__��r)rr4s��r/rc�$�eZdZejZy)�APIInvalidEndpointN)rr,r-r�E_API_INVALID_ENDPOINT�_formatted_msgr.r/r)r1r18s
���4�4�Nr/r1c�$�eZdZejZy)�
APIMissingArgN)rr,r-r�E_API_MISSING_ARGr3r.r/r)r5r5<s
���/�/�Nr/r5c�$�eZdZejZy)�APINoArgsForEndpointN)rr,r-r�E_API_NO_ARG_FOR_ENDPOINTr3r.r/r)r8r8@s
���7�7�Nr/r8c�$�eZdZejZy)�APIJSONDataFormatErrorN)rr,r-r�E_API_JSON_DATA_FORMAT_ERRORr3r.r/r)r;r;Ds
���:�:�Nr/r;c�$�eZdZejZy)�APIBadArgsFormatN)rr,r-r�E_API_BAD_ARGS_FORMATr3r.r/r)r>r>Hs
���3�3�Nr/r>N)�uaclientr�uaclient.api.data_typesrr�uaclient.exceptionsr�
uaclient.utilr�uaclient.versionr�	Exceptionr*rr1r5r8r;r>r.r/r)�<module>rFsp���C�.�-�2�)��)�{�)�X	�~�	�5��5�0�H�0�8�8�8�;�X�;�4�x�4r/

Zerion Mini Shell 1.0