File: //lib/python3/dist-packages/uaclient/__pycache__/exceptions.cpython-310.pyc
o
S��ce3 � @ s$ d dl Z d dlmZmZmZ d dlmZ d dlmZ d dl m
Z
G dd� de�ZG dd � d e�Z
G d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�ZG d(d)� d)e�ZG d*d+� d+e�ZG d,d-� d-e�ZG d.d/� d/e�Z G d0d1� d1e�Z!G d2d3� d3e�Z"G d4d5� d5e�Z#G d6d7� d7e�Z$G d8d9� d9e�Z%G d:d;� d;e�Z&G d<d=� d=e�Z'G d>d?� d?e�Z(G d@dA� dAe�Z)G dBdC� dCe�Z*G dDdE� dEe�Z+G dFdG� dGe�Z,G dHdI� dIe,�Z-G dJdK� dKe,�Z.G dLdM� dMe,�Z/G dNdO� dOe�Z0G dPdQ� dQe1�Z2G dRdS� dSe1�Z3G dTdU� dUe2�Z4G dVdW� dWe2�Z5G dXdY� dYe�Z6G dZd[� d[e�Z7G d\d]� d]e7�Z8G d^d_� d_e7�Z9G d`da� dae�Z:dS )b� N)�Any�Dict�Optional)�error)�messages)�PRINT_WRAP_WIDTHc
@ sD e Zd ZdZdZ d
dedee deeeef ddfdd �Z dS )�UserFacingErrorz�
An exception to be raised when an execution-ending error is encountered.
:param msg:
Takes a single parameter, which is the user-facing error message that
should be emitted before exiting non-zero.
� N�msg�msg_code�additional_info�returnc C s || _ || _|| _d S �N)r
r r )�selfr
r r � r �5/usr/lib/python3/dist-packages/uaclient/exceptions.py�__init__ s
zUserFacingError.__init__)NN)
�__name__�
__module__�__qualname__�__doc__� exit_code�strr r r r r r r r r s �����r c �* e Zd Zdededdf� fdd�Z� ZS )�APTInstallError�name�service_msgr
Nc � t � jtjjtjjd� d S �N�r
r )�superr r �APT_INSTALL_FAILEDr
r )r r r �� __class__r r r �
�zAPTInstallError.__init__�r r r r r �
__classcell__r r r"