1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 Contains hierarchy of all possible exceptions thrown by Keyczar.
19
20 @author: arkajit.dey@gmail.com (Arkajit Dey)
21 """
22
24 """Indicates exceptions raised by a Keyczar class."""
25
27 """Indicates a bad version number was received."""
28
32
34 """Indicates an error while performing Base 64 decoding."""
35
37 """Indicates an invalid ciphertext signature."""
38
41
43 """Indicates a key with a certain hash id was not found."""
44
48
49 -class ShortCiphertextError(KeyczarError):
50 """Indicates a ciphertext too short to be valid."""
51
52 - def __init__(self, length):
53 KeyczarError.__init__(self,
54 "Input of length %s is too short to be valid ciphertext." % length)
55
57 """Indicates a signature too short to be valid."""
58
60 KeyczarError.__init__(self,
61 "Input of length %s is too short to be valid signature." % length)
62
64 """Indicates missing primary key."""
65
68