Files
PGPy-3_13_patch/pgpy/errors.py
Michael Greene eb99007b3a big PEP8 pass
2022-11-23 17:15:45 -08:00

46 lines
1.1 KiB
Python

""" errors.py
"""
__all__ = ('PGPError',
'PGPEncryptionError',
'PGPDecryptionError',
'PGPIncompatibleECPointFormatError',
'PGPOpenSSLCipherNotSupportedError',
'PGPInsecureCipherError',
'WontImplementError',)
class PGPError(Exception):
"""Raised as a general error in PGPy"""
pass
class PGPEncryptionError(Exception):
"""Raised when encryption fails"""
pass
class PGPDecryptionError(Exception):
"""Raised when decryption fails"""
pass
class PGPIncompatibleECPointFormatError(Exception):
"""Raised when the point format is incompatible with the elliptic curve"""
pass
class PGPOpenSSLCipherNotSupportedError(Exception):
"""Raised when OpenSSL does not support the requested cipher"""
pass
class PGPInsecureCipherError(Exception):
"""Raised when a cipher known to be insecure is attempted to be used to encrypt data"""
pass
class WontImplementError(NotImplementedError):
"""Raised when something that is not implemented, will not be implemented"""
pass