1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
class AgentError(Exception):
"""An exception for when Agent sucks."""
pass
class PassphraseError(Exception):
"""An exception for when a 'good' cached passphrase didn't work."""
pass
class NoSelfKeyError(Exception):
"""An exception for when the user didn't include their own public key in the
keyring."""
pass
class EncryptionKeyError(Exception):
"""An exception for when a key can't encrypt (no encryption subkey)."""
pass
class EncryptionUnknownError(Exception):
"""An exception for NOT the above. Should never happen."""
pass
class GpgUnknownError(Exception):
"""An exception for NOT the above. Should never happen."""
pass
class MailSendError(Exception):
"""An exception for for NOT the above. Should never happen."""
pass
|