Skip to content

Commit 79cb52a

Browse files
committed
Add generic error classes for saml2.cryptography modules
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent a60e3cf commit 79cb52a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/saml2/cryptography/errors.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from saml2 import Error
2+
3+
4+
class CryptographyError(Error):
5+
"""Generic error from saml2.cryptography modules"""
6+
7+
8+
class SymmetricCryptographyError(CryptographyError):
9+
"""Generic error from saml2.cryptography.symmetric modules"""
10+
11+
12+
class AsymmetricCryptographyError(CryptographyError):
13+
"""Generic error from saml2.cryptography.asymmetric modules"""
14+
15+
16+
class PKICryptographyError(CryptographyError):
17+
"""Generic error from saml2.cryptography.pki modules"""

0 commit comments

Comments
 (0)