summaryrefslogtreecommitdiff
path: root/lib/thandy/__init__.py
blob: 5b53bfeb4f5b8b423eb12b3731c27701304dfe1a (plain)
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
# Copyright 2008 The Tor Project, Inc.  See LICENSE for licensing information.

__all__ = [ 'formats' ]

_BaseException = Exception

class Exception(_BaseException):
    pass

class FormatException(Exception):
    pass

class UnknownFormat(FormatException):
    pass

class BadSignature(Exception):
    pass

class BadPassword(Exception):
    pass

class InternalError(Exception):
    pass

class RepoError(InternalError):
    pass

class CryptoError(Exception):
    pass

class PubkeyFormatException(FormatException):
    pass

class UnknownMethod(CryptoError):
    pass

class DownloadError(Exception):
    pass