Alex Gaynor | f1a3fc0 | 2013-11-02 14:03:34 -0700 | [diff] [blame] | 1 | # 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 Gaynor | 738ac5a | 2013-11-02 14:10:38 -0700 | [diff] [blame] | 14 | |
Alex Gaynor | 3949f11 | 2013-11-02 16:57:10 -0700 | [diff] [blame] | 15 | class UnsupportedAlgorithm(Exception): |
Alex Gaynor | f1a3fc0 | 2013-11-02 14:03:34 -0700 | [diff] [blame] | 16 | pass |
David Reid | 152d6be | 2013-11-12 16:41:13 -0800 | [diff] [blame] | 17 | |
| 18 | |
| 19 | class AlreadyFinalized(Exception): |
| 20 | pass |
Paul Kehrer | 22e80cb | 2013-11-20 21:27:00 -0600 | [diff] [blame] | 21 | |
| 22 | |
Paul Kehrer | ce9c611 | 2013-11-22 14:10:59 -0600 | [diff] [blame] | 23 | class AlreadyUpdated(Exception): |
| 24 | pass |
| 25 | |
| 26 | |
Paul Kehrer | cc9ec98 | 2013-11-21 11:21:35 -0600 | [diff] [blame] | 27 | class NotYetFinalized(Exception): |
Paul Kehrer | 22e80cb | 2013-11-20 21:27:00 -0600 | [diff] [blame] | 28 | pass |
Paul Kehrer | a4bfc08 | 2013-11-22 19:57:37 -0600 | [diff] [blame] | 29 | |
| 30 | |
| 31 | class InvalidTag(Exception): |
| 32 | pass |
Julian Krause | 2288e30 | 2013-12-17 21:26:23 -0800 | [diff] [blame] | 33 | |
| 34 | |
| 35 | class InvalidSignature(Exception): |
| 36 | pass |
Alex Gaynor | 0d62fb0 | 2014-01-24 12:19:05 -0600 | [diff] [blame] | 37 | |
| 38 | |
| 39 | class InternalError(Exception): |
| 40 | pass |
Alex Gaynor | b2774f5 | 2014-01-27 11:05:29 -0800 | [diff] [blame] | 41 | |
| 42 | |
| 43 | class InvalidKey(Exception): |
| 44 | pass |
Ayrx | a776911 | 2014-02-13 12:27:56 +0800 | [diff] [blame^] | 45 | |
| 46 | |
| 47 | class InvalidToken(Exception): |
| 48 | pass |