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