blob: a26dbe18a4a9592933ccccac2aa66cc263b92856 [file] [log] [blame]
Alex Gaynorf1a3fc02013-11-02 14:03:34 -07001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Alex Gaynor738ac5a2013-11-02 14:10:38 -070014
Alex Gaynor25d24de2014-03-01 09:36:02 -080015class UnsupportedAlgorithm(Exception):
Alex Gaynor2b241a22014-02-26 21:20:41 -080016 pass
17
18
Alex Gaynor25d24de2014-03-01 09:36:02 -080019class UnsupportedCipher(UnsupportedAlgorithm):
Alex Gaynor2b241a22014-02-26 21:20:41 -080020 pass
21
22
Alex Gaynor25d24de2014-03-01 09:36:02 -080023class UnsupportedHash(UnsupportedAlgorithm):
Alex Gaynor2b241a22014-02-26 21:20:41 -080024 pass
25
26
Alex Gaynor25d24de2014-03-01 09:36:02 -080027class UnsupportedPadding(UnsupportedAlgorithm):
Alex Gaynorf1a3fc02013-11-02 14:03:34 -070028 pass
David Reid152d6be2013-11-12 16:41:13 -080029
30
31class AlreadyFinalized(Exception):
32 pass
Paul Kehrer22e80cb2013-11-20 21:27:00 -060033
34
Paul Kehrerce9c6112013-11-22 14:10:59 -060035class AlreadyUpdated(Exception):
36 pass
37
38
Paul Kehrercc9ec982013-11-21 11:21:35 -060039class NotYetFinalized(Exception):
Paul Kehrer22e80cb2013-11-20 21:27:00 -060040 pass
Paul Kehrera4bfc082013-11-22 19:57:37 -060041
42
43class InvalidTag(Exception):
44 pass
Julian Krause2288e302013-12-17 21:26:23 -080045
46
47class InvalidSignature(Exception):
48 pass
Alex Gaynor0d62fb02014-01-24 12:19:05 -060049
50
51class InternalError(Exception):
52 pass
Alex Gaynorb2774f52014-01-27 11:05:29 -080053
54
55class InvalidKey(Exception):
56 pass
Ayrxa7769112014-02-13 12:27:56 +080057
58
59class InvalidToken(Exception):
60 pass