403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

!V1f�����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/

Youez - 2016 - github.com/yon3zu
LinuXploit