blob: f9849e2f704a73f063c962e5a1679396174a9951 [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 Gaynor3949f112013-11-02 16:57:10 -070015class UnsupportedAlgorithm(Exception):
Alex Gaynorf1a3fc02013-11-02 14:03:34 -070016 pass
David Reid152d6be2013-11-12 16:41:13 -080017
18
19class AlreadyFinalized(Exception):
20 pass
Paul Kehrer22e80cb2013-11-20 21:27:00 -060021
22
Paul Kehrerce9c6112013-11-22 14:10:59 -060023class AlreadyUpdated(Exception):
24 pass
25
26
Paul Kehrercc9ec982013-11-21 11:21:35 -060027class NotYetFinalized(Exception):
Paul Kehrer22e80cb2013-11-20 21:27:00 -060028 pass
Paul Kehrera4bfc082013-11-22 19:57:37 -060029
30
31class InvalidTag(Exception):
32 pass
Julian Krause2288e302013-12-17 21:26:23 -080033
34
35class InvalidSignature(Exception):
36 pass
Alex Gaynor0d62fb02014-01-24 12:19:05 -060037
38
39class InternalError(Exception):
40 pass
Alex Gaynorb2774f52014-01-27 11:05:29 -080041
42
43class InvalidKey(Exception):
44 pass
Ayrxa7769112014-02-13 12:27:56 +080045
46
47class InvalidToken(Exception):
48 pass