Alex Gaynor | f1a3fc0 | 2013-11-02 14:03:34 -0700 | [diff] [blame] | 1 | Exceptions |
| 2 | ========== |
| 3 | |
| 4 | .. currentmodule:: cryptography.exceptions |
| 5 | |
David Reid | 6392a9c | 2013-11-13 10:01:15 -0800 | [diff] [blame] | 6 | .. class:: AlreadyFinalized |
| 7 | |
David Reid | 00fb12a | 2013-11-13 13:02:44 -0800 | [diff] [blame] | 8 | This is raised when a context is used after being finalized. |
David Reid | 6392a9c | 2013-11-13 10:01:15 -0800 | [diff] [blame] | 9 | |
Paul Kehrer | ce9c611 | 2013-11-22 14:10:59 -0600 | [diff] [blame] | 10 | |
| 11 | .. class:: NotYetFinalized |
Paul Kehrer | 22e80cb | 2013-11-20 21:27:00 -0600 | [diff] [blame] | 12 | |
| 13 | This is raised when the AEAD tag property is accessed on a context |
| 14 | before it is finalized. |
| 15 | |
David Reid | 6392a9c | 2013-11-13 10:01:15 -0800 | [diff] [blame] | 16 | |
Paul Kehrer | ce9c611 | 2013-11-22 14:10:59 -0600 | [diff] [blame] | 17 | .. class:: AlreadyUpdated |
| 18 | |
| 19 | This is raised when additional data is added to a context after update |
| 20 | has already been called. |
| 21 | |
| 22 | |
Alex Gaynor | 3949f11 | 2013-11-02 16:57:10 -0700 | [diff] [blame] | 23 | .. class:: UnsupportedAlgorithm |
Alex Gaynor | f1a3fc0 | 2013-11-02 14:03:34 -0700 | [diff] [blame] | 24 | |
| 25 | This is raised when a backend doesn't support the requested algorithm (or |
| 26 | combination of algorithms). |