File: exceptions.py

package info (click to toggle)
pius 3.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 2,963; perl: 178; makefile: 2; sh: 1
file content (41 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
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