Coverage for pki_tools/exceptions.py: 100%

16 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-11-02 22:00 +0000

1class Error(Exception): 

2 """ 

3 Error is the base pki_tools exception 

4 """ 

5 

6 

7class ExtensionMissing(Error): 

8 """ 

9 ExtensionMissing 

10 """ 

11 

12 

13class OcspFetchFailure(Error): 

14 """ 

15 OcspFetchFailure 

16 """ 

17 

18 

19class FetchFailure(Error): 

20 """ 

21 FetchFailure 

22 """ 

23 

24 

25class OcspInvalidResponseStatus(Error): 

26 """ 

27 OcspInvalidResponseStatus 

28 """ 

29 

30 

31class OcspIssuerFetchFailure(Error): 

32 """ 

33 OcspIssuerFetchFailure 

34 """ 

35 

36 

37class LoadError(Error): 

38 """ 

39 Risen when a IoCryptoParser implementing class could not be 

40 loaded properly. 

41 """ 

42 

43 

44class RevokeCheckFailed(Error): 

45 """ 

46 RevokeCheckFailed 

47 """ 

48 

49 

50class CertIssuerMissingInChain(Error): 

51 """ 

52 CertIssuerMissingInChain 

53 """ 

54 

55 

56class NotCompleteChain(Error): 

57 """ 

58 NotCompleteChain 

59 """ 

60 

61 

62class CertExpired(Error): 

63 """ 

64 CertExpired 

65 """ 

66 

67 

68class SignatureVerificationFailed(Error): 

69 """ 

70 SignatureVerificationFailed 

71 """ 

72 

73 

74class InvalidSignedType(Error): 

75 """ 

76 InvalidSignedType 

77 """ 

78 

79 

80class MissingInit(Error): 

81 """ 

82 Risen when the 

83 [InitCryptoParser][pki_tools.types.crypto_parser.InitCryptoParser] 

84 has not been initialized. 

85 """ 

86 

87 

88class MissingBlockSize(Error): 

89 """ 

90 MissingBlockSize 

91 """ 

92 

93 

94class CrlIdpInvalid(Error): 

95 """ 

96 CrlIdpInvalid 

97 """