HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/uaclient/api/__pycache__/errors.cpython-310.pyc
o

Uٵg��@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,