aboutsummaryrefslogtreecommitdiffstats
path: root/docs/exceptions.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-27 11:04:21 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-27 11:04:21 -0700
commit3d5d6471b10e5f46eb8b40a9a41eb16e657d25b8 (patch)
tree8285f420269fd636e63c9152143750922e48e869 /docs/exceptions.rst
parent844c14a15884fb60871640576e30a61e6c4c2db1 (diff)
parent85a791f0fa061ec644f5bfca41ee6038eeef38eb (diff)
downloadcryptography-3d5d6471b10e5f46eb8b40a9a41eb16e657d25b8.tar.gz
cryptography-3d5d6471b10e5f46eb8b40a9a41eb16e657d25b8.tar.bz2
cryptography-3d5d6471b10e5f46eb8b40a9a41eb16e657d25b8.zip
Merge pull request #849 from public/changeup-exceptions-2-electric-boogaloo
Use a single tagged exception instead of a hierarchy
Diffstat (limited to 'docs/exceptions.rst')
-rw-r--r--docs/exceptions.rst33
1 files changed, 7 insertions, 26 deletions
diff --git a/docs/exceptions.rst b/docs/exceptions.rst
index e5010ebe..28da8ecc 100644
--- a/docs/exceptions.rst
+++ b/docs/exceptions.rst
@@ -3,6 +3,13 @@ Exceptions
.. currentmodule:: cryptography.exceptions
+
+.. class:: UnsupportedAlgorithm
+
+ Raised when the requested algorithm, or combination of algorithms is not
+ supported.
+
+
.. class:: AlreadyFinalized
This is raised when a context is used after being finalized.
@@ -25,25 +32,6 @@ Exceptions
This is raised when additional data is added to a context after update
has already been called.
-.. class:: UnsupportedCipher
-
- .. versionadded:: 0.3
-
- This is raised when a backend doesn't support the requested cipher
- algorithm and mode combination.
-
-.. class:: UnsupportedHash
-
- .. versionadded:: 0.3
-
- This is raised when a backend doesn't support the requested hash algorithm.
-
-.. class:: UnsupportedPadding
-
- .. versionadded:: 0.3
-
- This is raised when the requested padding is not supported by the backend.
-
.. class:: InvalidKey
@@ -55,10 +43,3 @@ Exceptions
This is raised when the verify method of a one time password function's
computed token does not match the expected token.
-
-.. class:: UnsupportedInterface
-
- .. versionadded:: 0.3
-
- This is raised when the provided backend does not support the required
- interface.