KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
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-38.pyc
U

ZS�c�@stddlmZmZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
eed�dd	�ZGd
d�de�ZdS)
�)�Dict�Optional)�APIResponse�ErrorWarningObject)�UserFacingError)�WARN_NEW_VERSION_AVAILABLE)�get_pro_environment)�check_for_new_version)�	exception�returnc	Cs�t|ttf�r4t|j|jp$d|jj|jp,id�}ntt	|�d|jjid�}g}t
�}|r||�ttj
|d�jtjid��tdddddd	�tt����D�ii|g|d
�S)Nzgeneric-)�title�code�meta)�versionZv1ZfailurerZenvironment_varscSsg|]\}}||d��qS))�name�value�)�.0rrrr�5/usr/lib/python3/dist-packages/uaclient/api/errors.py�
<listcomp>+s�zerror_out.<locals>.<listcomp>)Z_schema_version�result�data�errors�warnings)�
isinstancer�APIErrorr�msg�msg_code�	__class__�__name__�additional_info�strr	�appendr�formatrr�sortedr�items)r
�errorrZnew_versionrrr�	error_out
sJ
�
����
����r'cs6eZdZdeeeeeefdd��fdd�
Z�ZS)r�	api-errorN)rrr rcst��|||�dS)N)�super�__init__)�selfrrr �rrrr*7szAPIError.__init__)r(N)r�
__module__�__qualname__r!rrr*�
__classcell__rrr,rr6s��rN)�typingrrZuaclient.api.data_typesrrZuaclient.exceptionsrZuaclient.messagesrZ
uaclient.utilrZuaclient.versionr	�	Exceptionr'rrrrr�<module>s,

Anon7 - 2021