File manager - Edit - /usr/lib/python3/dist-packages/uaclient/__pycache__/exceptions.cpython-310.pyc
Back
o =�xd�; � @ s� d dl Z d dlmZmZmZmZmZ d dlmZ d dl m Z d dlmZ G dd� de �ZG dd � d e�ZG 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�Z G d,d-� d-e�Z!G 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.�Z0G dLdM� dMe.�Z1G dNdO� dOe�Z2G dPdQ� dQe�Z3G dRdS� dSe3�Z4G dTdU� dUe3�Z5G dVdW� dWe6�Z7G dXdY� dYe6�Z8G dZd[� d[e7�Z9G d\d]� d]e7�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�ZAG dldm� dme�ZBG dndo� doe�ZCdS )p� N)�Any�Dict�List�Optional�Tuple)�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% r r � "r c � e Zd Z� fdd�Z� ZS )�APTProcessConflictErrorc r r! )r# r r �APT_PROCESS_CONFLICTr r �r r% r r r ( r'