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

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

    failed_achallsr   returnNc                 8    |sJ || _         t        | 	          y )N)r'   super__init__)selfr'   	__class__s     r   r+   zFailedChallenges.__init__:   s    ~,r   c                 d    dj                  dj                  d | j                  D                    S )Nz#Failed authorization procedure. {0}z, c              3      K   | ]A  }|j                   3dj                  |j                  |j                  |j                          C y w)Nz{0} ({1}): {2})errorformatdomaintyp).0achalls     r   	<genexpr>z+FailedChallenges.__str__.<locals>.<genexpr>A   s>      OV\\5M !''vzz6<<POs   AA	)r1   joinr'   )r,   s    r   __str__zFailedChallenges.__str__?   s9    4;;II O"11O OP 	Pr   )	r	   r
   r   r   r   r+   strr8   __classcell__r-   s   @r   r&   r&   4   s/    
s+?'@ T 
P Pr   r&   c                       e Zd ZdZy)PluginErrorzCertbot Plugin error.Nr   r   r   r   r=   r=   G   s    r   r=   c                       e Zd ZdZy)PluginEnhancementAlreadyPresentz Enhancement was already set Nr   r   r   r   r?   r?   K   r   r   r?   c                       e Zd ZdZy)PluginSelectionErrorz5A problem with plugin/configurator selection or setupNr   r   r   r   rA   rA   O   s    ?r   rA   c                       e Zd ZdZy)NoInstallationErrorzCertbot No Installation error.Nr   r   r   r   rC   rC   S   s    (r   rC   c                       e Zd ZdZy)MisconfigurationErrorzCertbot Misconfiguration error.Nr   r   r   r   rE   rE   W   s    )r   rE   c                       e Zd ZdZy)NotSupportedErrorz,Certbot Plugin function not supported error.Nr   r   r   r   rG   rG   [   s    6r   rG   c                       e Zd ZdZy)PluginStorageErrorzCertbot Plugin Storage error.Nr   r   r   r   rI   rI   _   r   r   rI   c                   0     e Zd ZdZdededdf fdZ xZS )StandaloneBindErrorzStandalone plugin bind error.socket_errorportr(   Nc                 `    t         |   dj                  ||             || _        || _        y )Nz Problem binding to port {0}: {1})r*   r+   r1   rL   rM   )r,   rL   rM   r-   s      r   r+   zStandaloneBindError.__init__f   s0    .55dLI	K(	r   )r	   r
   r   r   OSErrorintr+   r:   r;   s   @r   rK   rK   c   s%    'W C D  r   rK   c                       e Zd ZdZy)ConfigurationErrorzConfiguration sanity error.Nr   r   r   r   rR   rR   m   s    %r   rR   c                       e Zd ZdZy)MissingCommandlineFlagz;A command line argument was missing in noninteractive usageNr   r   r   r   rT   rT   r   s    Er   rT   N)r   typingr   r   certbot.achallengesr   	Exceptionr   r   r   r   r   r   r   r   r    r"   r$   r&   r=   r?   rA   rC   rE   rG   rI   rK   rR   rT   r   r   r   <module>rX      s(      6(I (+% +#) #"E "%e %(u (5% 5P PKE K 
 P) P& %  (e (@5 @)+ )*K *7 7( (% & &
FU Fr   