
ก\\_
  ใ               @   s๎  d  Z  Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd	 d
   d
 e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z	 Gd d   d e  Z
 Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d    d  e  Z Gd! d"   d" e  Z Gd# d$   d$ e  Z Gd% d&   d& e  Z Gd' d(   d( e  Z Gd) d*   d* e  Z Gd+ 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.N)r   r   r   r   r   r   r   r   r      s   r   c               @   s   e  Z d  Z d Z d S)ฺAccountNotFoundzAccount not found error.N)r   r   r   r   r   r   r   r   r	      s   r	   c               @   s   e  Z d  Z d Z d S)ฺReverterErrorzCertbot Reverter error.N)r   r   r   r   r   r   r   r   r
      s   r
   c               @   s   e  Z d  Z d Z d S)ฺSubprocessErrorzSubprocess handling error.N)r   r   r   r   r   r   r   r   r      s   r   c               @   s   e  Z d  Z d Z d S)ฺCertStorageErrorzGeneric `.CertStorage` error.N)r   r   r   r   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.N)r   r   r   r   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.N)r   r   r   r   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.N)r   r   r   r   r   r   r   r   r   #   s   r   c               @   s   e  Z d  Z d Z d S)ฺ	LockErrorzFile locking error.N)r   r   r   r   r   r   r   r   r   &   s   r   c               @   s   e  Z d  Z d Z d S)ฺAuthorizationErrorzAuthorization error.N)r   r   r   r   r   r   r   r   r   +   s   r   c                   s4   e  Z d  Z d Z   f d d   Z d d   Z   S)ฺFailedChallengeszeFailed challenges error.

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

    c                s,   | s t   | |  _ t t |   j   d  S)N)ฺAssertionErrorฺfailed_achallsฺsuperr   ฺ__init__)ฺselfr   )ฺ	__class__r   r   r   5   s    	zFailedChallenges.__init__c             C   s&   d j  d j d d   |  j D   S)Nz#Failed authorization procedure. {0}z, c             s   s<   |  ]2 } | j  d  k	 r d j | 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   r   r   )r   r   r   /   s   r   c               @   s   e  Z d  Z d Z d S)ฺPluginErrorzCertbot Plugin error.N)r   r   r   r   r   r   r   r   r    B   s   r    c               @   s   e  Z d  Z d Z d S)ฺPluginEnhancementAlreadyPresentz Enhancement was already set N)r   r   r   r   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 setupN)r   r   r   r   r   r   r   r   r"   J   s   r"   c               @   s   e  Z d  Z d Z d S)ฺNoInstallationErrorzCertbot No Installation error.N)r   r   r   r   r   r   r   r   r#   N   s   r#   c               @   s   e  Z d  Z d Z d S)ฺMisconfigurationErrorzCertbot Misconfiguration error.N)r   r   r   r   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.N)r   r   r   r   r   r   r   r   r%   V   s   r%   c               @   s   e  Z d  Z d Z d S)ฺPluginStorageErrorzCertbot Plugin Storage error.N)r   r   r   r   r   r   r   r   r&   Z   s   r&   c                   s(   e  Z d  Z d Z   f d d   Z   S)ฺStandaloneBindErrorzStandalone plugin bind error.c                s8   t  t |   j d j | |   | |  _ | |  _ 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'   ^   s   r'   c               @   s   e  Z d  Z d Z d S)ฺConfigurationErrorzConfiguration sanity error.N)r   r   r   r   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 usageN)r   r   r   r   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,   
