M/e dZddlmZddlmZerddlmZGddeZGddeZGd d eZ Gd d eZ Gd deZ GddeZ GddeZ GddeZGddeZGddeZGddeZGddeZGddeZGdd eZGd!d"eZGd#d$eZGd%d&eZGd'd(eZGd)d*eZGd+d,eZGd-d.eZGd/d0eZy1)2zCertbot client errors.)Set) TYPE_CHECKING)AnnotatedChallengeceZdZdZy)ErrorzGeneric Certbot client error.N__name__ __module__ __qualname____doc__0/usr/lib/python3/dist-packages/certbot/errors.pyrr 'rrceZdZdZy)AccountStorageErrorz Generic `.AccountStorage` error.Nrr rrrr s*rrceZdZdZy)AccountNotFoundzAccount not found error.Nrr rrrrs"rrceZdZdZy) ReverterErrorzCertbot Reverter error.Nrr rrrrs!rrceZdZdZy)SubprocessErrorzSubprocess handling error.Nrr rrrrs$rrceZdZdZy)CertStorageErrorzGeneric `.CertStorage` error.Nrr rrrrrrrceZdZdZy)HookCommandNotFoundz*Failed to find a hook command in the PATH.Nrr rrrr!s4rrceZdZdZy) SignalExitzEA Unix signal was received while in the ErrorHandler context manager.Nrr rrrr%sOrrceZdZdZy)OverlappingMatchFoundz@Multiple lineages matched what should have been a unique result.Nrr rrr r (sJrr ceZdZdZy) LockErrorzFile locking error.Nrr rrr"r"+srr"ceZdZdZy)AuthorizationErrorzAuthorization error.Nrr rrr$r$0srr$c>eZdZdZdedddffd ZdefdZxZS)FailedChallengeszeFailed challenges error. :ivar set failed_achalls: Failed `.AnnotatedChallenge` instances. failed_achallsrreturnNc8|sJ||_t| y)N)r'super__init__)selfr' __class__s rr+zFailedChallenges.__init__:s~, rcddjdjd|jDS)Nz#Failed authorization procedure. {0}z, c3K|]A}|j3dj|j|j|jCyw)Nz{0} ({1}): {2})errorformatdomaintyp).0achalls r z+FailedChallenges.__str__..As>OV\\5M!'' vzz6<<POsAA )r1joinr')r,s r__str__zFailedChallenges.__str__?s94;; IIO"11O OP Pr) r r r r rr+strr8 __classcell__r-s@rr&r&4s/ s+?'@T PPrr&ceZdZdZy) PluginErrorzCertbot Plugin error.Nrr rrr=r=Gsrr=ceZdZdZy)PluginEnhancementAlreadyPresentz Enhancement was already set Nrr rrr?r?Krrr?ceZdZdZy)PluginSelectionErrorz5A problem with plugin/configurator selection or setupNrr rrrArAOs?rrAceZdZdZy)NoInstallationErrorzCertbot No Installation error.Nrr rrrCrCSs(rrCceZdZdZy)MisconfigurationErrorzCertbot Misconfiguration error.Nrr rrrErEWs)rrEceZdZdZy)NotSupportedErrorz,Certbot Plugin function not supported error.Nrr rrrGrG[s6rrGceZdZdZy)PluginStorageErrorzCertbot Plugin Storage error.Nrr rrrIrI_rrrIc0eZdZdZdededdffd ZxZS)StandaloneBindErrorzStandalone plugin bind error. socket_errorportr(Nc`t|dj||||_||_y)Nz Problem binding to port {0}: {1})r*r+r1rLrM)r,rLrMr-s rr+zStandaloneBindError.__init__fs0  . 5 5dL I K( r)r r r r OSErrorintr+r:r;s@rrKrKcs%'WCDrrKceZdZdZy)ConfigurationErrorzConfiguration sanity error.Nrr rrrRrRms%rrRceZdZdZy)MissingCommandlineFlagz;A command line argument was missing in noninteractive usageNrr rrrTrTrsErrTN)r typingrrcertbot.achallengesr Exceptionrrrrrrrrr r"r$r&r=r?rArCrErGrIrKrRrTr rrrXs( 6(I(+%+#)#"E"%e%(u(5%5PPKEK P)P& % (e(@5@)+)*K*7 7((%&& FUFr