U
    ÝÁ]_
  ã                   @   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                   @   s   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      s   r   c                   @   s   e Zd ZdZdS )ÚAccountStorageErrorz Generic `.AccountStorage` error.Nr   r   r   r   r   r	      s   r	   c                   @   s   e Zd ZdZdS )ÚAccountNotFoundzAccount not found error.Nr   r   r   r   r   r
      s   r
   c                   @   s   e Zd ZdZdS )ÚReverterErrorzCertbot Reverter error.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚSubprocessErrorzSubprocess handling error.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚCertStorageErrorzGeneric `.CertStorage` error.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚHookCommandNotFoundz*Failed to find a hook command in the PATH.Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )Ú
SignalExitzEA Unix signal was received while in the ErrorHandler context manager.Nr   r   r   r   r   r       s   r   c                   @   s   e Zd ZdZdS )ÚOverlappingMatchFoundz@Multiple lineages matched what should have been a unique result.Nr   r   r   r   r   r   #   s   r   c                   @   s   e Zd ZdZdS )Ú	LockErrorzFile locking error.Nr   r   r   r   r   r   &   s   r   c                   @   s   e Zd ZdZdS )ÚAuthorizationErrorzAuthorization error.Nr   r   r   r   r   r   +   s   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t ‚|| _tt| ƒ ¡  d S )N)ÚAssertionErrorÚfailed_achallsÚsuperr   Ú__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 k	rd |j|j|j ¡V  qd S )Nz{0} ({1}): {2})ÚerrorÚformatZdomainÚtyp)Ú.0Z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                   @   s   e Zd ZdZdS )ÚPluginErrorzCertbot Plugin error.Nr   r   r   r   r   r#   B   s   r#   c                   @   s   e Zd ZdZdS )ÚPluginEnhancementAlreadyPresentz Enhancement was already set Nr   r   r   r   r   r$   F   s   r$   c                   @   s   e Zd ZdZdS )ÚPluginSelectionErrorz5A problem with plugin/configurator selection or setupNr   r   r   r   r   r%   J   s   r%   c                   @   s   e Zd ZdZdS )ÚNoInstallationErrorzCertbot No Installation error.Nr   r   r   r   r   r&   N   s   r&   c                   @   s   e Zd ZdZdS )ÚMisconfigurationErrorzCertbot Misconfiguration error.Nr   r   r   r   r   r'   R   s   r'   c                   @   s   e Zd ZdZdS )ÚNotSupportedErrorz,Certbot Plugin function not supported error.Nr   r   r   r   r   r(   V   s   r(   c                   @   s   e Zd ZdZdS )ÚPluginStorageErrorzCertbot Plugin Storage error.Nr   r   r   r   r   r)   Z   s   r)   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚStandaloneBindErrorzStandalone plugin bind error.c                    s(   t t| ƒ d ||¡¡ || _|| _d S )Nz Problem binding to port {0}: {1})r   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                   @   s   e Zd ZdZdS )ÚConfigurationErrorzConfiguration sanity error.Nr   r   r   r   r   r-   h   s   r-   c                   @   s   e Zd ZdZdS )ÚMissingCommandlineFlagz;A command line argument was missing in noninteractive usageNr   r   r   r   r   r.   m   s   r.   N)r   Ú	Exceptionr   r	   r
   r   r   r   r   r   r   r   r   r   r#   r$   r%   r&   r'   r(   r)   r*   r-   r.   r   r   r   r   Ú<module>   s,   
