diff options
Diffstat (limited to 'error.py')
-rw-r--r-- | error.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -57,6 +57,15 @@ class UploadError(Exception): | |||
57 | def __str__(self): | 57 | def __str__(self): |
58 | return self.reason | 58 | return self.reason |
59 | 59 | ||
60 | class DownloadError(Exception): | ||
61 | """Cannot download a repository. | ||
62 | """ | ||
63 | def __init__(self, reason): | ||
64 | self.reason = reason | ||
65 | |||
66 | def __str__(self): | ||
67 | return self.reason | ||
68 | |||
60 | class NoSuchProjectError(Exception): | 69 | class NoSuchProjectError(Exception): |
61 | """A specified project does not exist in the work tree. | 70 | """A specified project does not exist in the work tree. |
62 | """ | 71 | """ |