a
    ©!cF  γ                   @   s  d dl Z d dlmZmZ d dlmZ G dd de jjZG dd de jjZ	G dd	 d	e jjZ
G d
d de jjZG dd de jjZG dd de jjZG dd de jjZG dd de jjZG dd de jjZG dd de jjZG dd de jjZdS )ι    N)Ϊmodule_messagesΪNO_PROFILE_SPECIFIED)Ϊ_c                       s   e Zd Z fddZ  ZS )ΪNoModuleExceptionc                    s"   t d |‘}tt|  |‘ d S )NzNo such module: {})r   ΪformatΪsuperr   Ϊ__init__©ΪselfZmodule_specΪvalue©Ϊ	__class__© ϊ9/usr/lib/python3.9/site-packages/dnf/module/exceptions.pyr      s    zNoModuleException.__init__©Ϊ__name__Ϊ
__module__Ϊ__qualname__r   Ϊ__classcell__r   r   r   r   r      s   r   c                       s   e Zd Z fddZ  ZS )ΪNoStreamExceptionc                    s"   t d |‘}tt|  |‘ d S )NzNo such stream: {})r   r   r   r   r   )r
   Ϊstreamr   r   r   r   r       s    zNoStreamException.__init__r   r   r   r   r   r      s   r   c                       s   e Zd Z fddZ  ZS )ΪEnabledStreamExceptionc                    s"   t d |‘}tt|  |‘ d S )Nz No enabled stream for module: {})r   r   r   r   r   r	   r   r   r   r   &   s    zEnabledStreamException.__init__r   r   r   r   r   r   %   s   r   c                       s   e Zd Zd fdd	Z  ZS )ΪEnableMultipleStreamsExceptionNc                    s*   |d u rt d |‘}tt|  |‘ d S )Nz<Cannot enable more streams from module '{}' at the same time)r   r   r   r   r   r	   r   r   r   r   ,   s    z'EnableMultipleStreamsException.__init__)Nr   r   r   r   r   r   +   s   r   c                       s   e Zd Z fddZ  ZS )ΪDifferentStreamEnabledExceptionc                    s"   t d |‘}tt|  |‘ d S )Nz'Different stream enabled for module: {})r   r   r   r   r   r	   r   r   r   r   3   s    z(DifferentStreamEnabledException.__init__r   r   r   r   r   r   2   s   r   c                       s   e Zd Z fddZ  ZS )ΪNoProfileExceptionc                    s"   t d |‘}tt|  |‘ d S )NzNo such profile: {})r   r   r   r   r   )r
   Zprofiler   r   r   r   r   9   s    zNoProfileException.__init__r   r   r   r   r   r   8   s   r   c                       s   e Zd Z fddZ  ZS )ΪProfileNotInstalledExceptionc                    s"   t d |‘}tt|  |‘ d S )Nz&Specified profile not installed for {})r   r   r   r   r   r	   r   r   r   r   ?   s    z%ProfileNotInstalledException.__init__r   r   r   r   r   r   >   s   r   c                       s   e Zd Z fddZ  ZS )ΪNoStreamSpecifiedExceptionc                    s"   t d |‘}tt|  |‘ d S )Nz3No stream specified for '{}', please specify stream)r   r   r   r   r   r	   r   r   r   r   E   s    z#NoStreamSpecifiedException.__init__r   r   r   r   r   r   D   s   r   c                       s   e Zd Z fddZ  ZS )ΪNoProfileSpecifiedExceptionc                    s"   t t  |‘}tt|  |‘ d S )N)r   r   r   r   r   r   r	   r   r   r   r   K   s    z$NoProfileSpecifiedException.__init__r   r   r   r   r   r   J   s   r   c                       s   e Zd Z fddZ  ZS )ΪNoProfilesExceptionc                    s"   t d |‘}tt|  |‘ d S )Nz*No such profile: {}. No profiles available)r   r   r   r   r   r	   r   r   r   r   Q   s    zNoProfilesException.__init__r   r   r   r   r   r   P   s   r   c                       s   e Zd Z fddZ  ZS )ΪNoProfileToRemoveExceptionc                    s"   t d |‘}tt|  |‘ d S )NzNo profile to remove for '{}')r   r   r   r   r   r	   r   r   r   r   W   s    z#NoProfileToRemoveException.__init__r   r   r   r   r   r   V   s   r   )ZdnfZ
dnf.moduler   r   Zdnf.i18nr   Ϊ
exceptionsΪErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Ϊ<module>   s   