blob: 087066b825ede7253028c67180ddeafc813c31ec [file] [log] [blame]
Alex Gaynorf1a3fc02013-11-02 14:03:34 -07001Exceptions
2==========
3
4.. currentmodule:: cryptography.exceptions
5
David Reid6392a9c2013-11-13 10:01:15 -08006.. class:: AlreadyFinalized
7
David Reid00fb12a2013-11-13 13:02:44 -08008 This is raised when a context is used after being finalized.
David Reid6392a9c2013-11-13 10:01:15 -08009
Paul Kehrerce9c6112013-11-22 14:10:59 -060010
11.. class:: NotYetFinalized
Paul Kehrer22e80cb2013-11-20 21:27:00 -060012
13 This is raised when the AEAD tag property is accessed on a context
14 before it is finalized.
15
David Reid6392a9c2013-11-13 10:01:15 -080016
Paul Kehrerce9c6112013-11-22 14:10:59 -060017.. 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 Gaynor3949f112013-11-02 16:57:10 -070023.. class:: UnsupportedAlgorithm
Alex Gaynorf1a3fc02013-11-02 14:03:34 -070024
25 This is raised when a backend doesn't support the requested algorithm (or
26 combination of algorithms).