Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

"""Certbot client errors.""" 

 

 

class Error(Exception): 

"""Generic Certbot client error.""" 

 

 

class AccountStorageError(Error): 

"""Generic `.AccountStorage` error.""" 

 

 

class AccountNotFound(AccountStorageError): 

"""Account not found error.""" 

 

 

class ReverterError(Error): 

"""Certbot Reverter error.""" 

 

 

class SubprocessError(Error): 

"""Subprocess handling error.""" 

 

 

class CertStorageError(Error): 

"""Generic `.CertStorage` error.""" 

 

 

class HookCommandNotFound(Error): 

"""Failed to find a hook command in the PATH.""" 

 

 

class SignalExit(Error): 

"""A Unix signal was received while in the ErrorHandler context manager.""" 

 

class OverlappingMatchFound(Error): 

"""Multiple lineages matched what should have been a unique result.""" 

 

class LockError(Error): 

"""File locking error.""" 

 

 

# Auth Handler Errors 

class AuthorizationError(Error): 

"""Authorization error.""" 

 

 

class FailedChallenges(AuthorizationError): 

"""Failed challenges error. 

 

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

 

""" 

def __init__(self, failed_achalls): 

assert failed_achalls 

self.failed_achalls = failed_achalls 

super(FailedChallenges, self).__init__() 

 

def __str__(self): 

return "Failed authorization procedure. {0}".format( 

", ".join( 

"{0} ({1}): {2}".format(achall.domain, achall.typ, achall.error) 

for achall in self.failed_achalls if achall.error is not None)) 

 

 

# Plugin Errors 

class PluginError(Error): 

"""Certbot Plugin error.""" 

 

 

class PluginEnhancementAlreadyPresent(Error): 

""" Enhancement was already set """ 

 

 

class PluginSelectionError(Error): 

"""A problem with plugin/configurator selection or setup""" 

 

 

class NoInstallationError(PluginError): 

"""Certbot No Installation error.""" 

 

 

class MisconfigurationError(PluginError): 

"""Certbot Misconfiguration error.""" 

 

 

class NotSupportedError(PluginError): 

"""Certbot Plugin function not supported error.""" 

 

 

class PluginStorageError(PluginError): 

"""Certbot Plugin Storage error.""" 

 

 

class StandaloneBindError(Error): 

"""Standalone plugin bind error.""" 

 

def __init__(self, socket_error, port): 

super(StandaloneBindError, self).__init__( 

"Problem binding to port {0}: {1}".format(port, socket_error)) 

self.socket_error = socket_error 

self.port = port 

 

 

class ConfigurationError(Error): 

"""Configuration sanity error.""" 

 

# NoninteractiveDisplay iDisplay plugin error: 

 

class MissingCommandlineFlag(Error): 

"""A command line argument was missing in noninteractive usage"""