Files
mayan-edms/mayan/apps/django_gpg/exceptions.py

56 lines
864 B
Python

__all__ = (
'GPGException', 'VerificationError', 'SigningError',
'DecryptionError', 'KeyDeleteError', 'KeyGenerationError',
'KeyFetchingError', 'KeyDoesNotExist', 'KeyImportError'
)
class GPGException(Exception):
pass
class VerificationError(GPGException):
pass
class SigningError(GPGException):
pass
class DecryptionError(GPGException):
pass
class KeyDeleteError(GPGException):
pass
class KeyGenerationError(GPGException):
pass
class KeyFetchingError(GPGException):
"""
Unable to receive key or key not found
"""
class KeyDoesNotExist(GPGException):
pass
class KeyImportError(GPGException):
pass
class NeedPassphrase(GPGException):
"""
Passphrase is needed but none was provided
"""
class PassphraseError(GPGException):
"""
Passphrase provided is incorrect
"""