HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/uaclient/api/__pycache__/exceptions.cpython-310.pyc
o

8�-d��@s�ddlmZmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZgd�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)�)�List�Tuple)�messages)�APIError)	�AlreadyAttachedError�ConnectivityError�ContractAPIError�EntitlementNotFoundError�InvalidProImage�
LockHeldError�NonAutoAttachImageError�UrlError�UserFacingErrorcs0eZdZdeeeejff�fdd�Z�Z	S)�EntitlementsNotEnabledError�failed_servicescs0dd�|D�}t�jtjjtjjd|id�dS)NcSs(g|]}|d|dj|djd��qS)r�)�name�code�title)r�msg)�.0�f�r�9/usr/lib/python3/dist-packages/uaclient/api/exceptions.py�
<listcomp>"s��z8EntitlementsNotEnabledError.__init__.<locals>.<listcomp>�services)�additional_info)�super�__init__r�ENTITLEMENTS_NOT_ENABLED_ERRORrr)�selfr�
info_dicts��	__class__rrrs�
�z$EntitlementsNotEnabledError.__init__)
�__name__�
__module__�__qualname__rr�strr�NamedMessager�
__classcell__rrr"rrs�rcseZdZ�fdd�Z�ZS)�AutoAttachDisabledErrorcst��tjjtjj�dS)N)rrr�AUTO_ATTACH_DISABLED_ERRORrr)r r"rrr.s�z AutoAttachDisabledError.__init__)r$r%r&rr)rrr"rr*-sr*c@seZdZdd�ZdS)�UnattendedUpgradesErrorcCs||_d|_dS)Nz-unable-to-determine-unattended-upgrade-status)r�msg_code)r rrrrr6s
z UnattendedUpgradesError.__init__N)r$r%r&rrrrrr,5sr,N)�typingrr�uaclientr�uaclient.api.errorsr�uaclient.exceptionsrrrr	r
rrr
r�__all__rr*r,rrrr�<module>s,