o
    6a 
                     @   sh  d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd  d eZG d!d" d"eZG d#d$ d$eZG d%d& d&eZG d'd( d(eZG d)d* d*eZG d+d, d,eZd-S ).zCertbot client errors.c                   @      e Zd ZdZdS )ErrorzGeneric Certbot client error.N__name__
__module____qualname____doc__ r   r   0/usr/lib/python3/dist-packages/certbot/errors.pyr          r   c                   @   r   )AccountStorageErrorz Generic `.AccountStorage` error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )AccountNotFoundzAccount not found error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ReverterErrorzCertbot Reverter error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )SubprocessErrorzSubprocess handling error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )CertStorageErrorzGeneric `.CertStorage` error.Nr   r   r   r   r	   r      r
   r   c                   @   r   )HookCommandNotFoundz*Failed to find a hook command in the PATH.Nr   r   r   r   r	   r      r
   r   c                   @   r   )
SignalExitzEA Unix signal was received while in the ErrorHandler context manager.Nr   r   r   r   r	   r       r
   r   c                   @   r   )OverlappingMatchFoundz@Multiple lineages matched what should have been a unique result.Nr   r   r   r   r	   r   #   r
   r   c                   @   r   )	LockErrorzFile locking error.Nr   r   r   r   r	   r   &   r
   r   c                   @   r   )AuthorizationErrorzAuthorization error.Nr   r   r   r   r	   r   +   r
   r   c                       s(   e Zd ZdZ fddZdd Z  ZS )FailedChallengeszeFailed challenges error.

    :ivar set failed_achalls: Failed `.AnnotatedChallenge` instances.

    c                    s   |sJ || _ t   d S )N)failed_achallssuper__init__)selfr   	__class__r   r	   r   5   s   zFailedChallenges.__init__c                 C   s   d ddd | jD S )Nz#Failed authorization procedure. {0}z, c                 s   s.    | ]}|j d urd|j|j|j V  qd S )Nz{0} ({1}): {2})errorformatdomaintyp).0achallr   r   r	   	<genexpr><   s    z+FailedChallenges.__str__.<locals>.<genexpr>)r   joinr   )r   r   r   r	   __str__:   s
   
zFailedChallenges.__str__)r   r   r   r   r   r$   __classcell__r   r   r   r	   r   /   s    r   c                   @   r   )PluginErrorzCertbot Plugin error.Nr   r   r   r   r	   r&   B   r
   r&   c                   @   r   )PluginEnhancementAlreadyPresentz Enhancement was already set Nr   r   r   r   r	   r'   F   r
   r'   c                   @   r   )PluginSelectionErrorz5A problem with plugin/configurator selection or setupNr   r   r   r   r	   r(   J   r
   r(   c                   @   r   )NoInstallationErrorzCertbot No Installation error.Nr   r   r   r   r	   r)   N   r
   r)   c                   @   r   )MisconfigurationErrorzCertbot Misconfiguration error.Nr   r   r   r   r	   r*   R   r
   r*   c                   @   r   )NotSupportedErrorz,Certbot Plugin function not supported error.Nr   r   r   r   r	   r+   V   r
   r+   c                   @   r   )PluginStorageErrorzCertbot Plugin Storage error.Nr   r   r   r   r	   r,   Z   r
   r,   c                       s    e Zd ZdZ fddZ  ZS )StandaloneBindErrorzStandalone plugin bind error.c                    s$   t  d|| || _|| _d S )Nz Problem binding to port {0}: {1})r   r   r   socket_errorport)r   r.   r/   r   r   r	   r   a   s
   

zStandaloneBindError.__init__)r   r   r   r   r   r%   r   r   r   r	   r-   ^   s    r-   c                   @   r   )ConfigurationErrorzConfiguration sanity error.Nr   r   r   r   r	   r0   h   r
   r0   c                   @   r   )MissingCommandlineFlagz;A command line argument was missing in noninteractive usageNr   r   r   r   r	   r1   m   r
   r1   N)r   	Exceptionr   r   r   r   r   r   r   r   r   r   r   r   r&   r'   r(   r)   r*   r+   r,   r-   r0   r1   r   r   r   r	   <module>   s.    
