OLD | NEW |
(Empty) | |
| 1 # This Source Code Form is subject to the terms of the Mozilla Public |
| 2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 4 |
| 5 |
| 6 class NotSupportedError(Exception): |
| 7 """Exception for a build not being supported""" |
| 8 def __init__(self, message): |
| 9 Exception.__init__(self, message) |
| 10 |
| 11 |
| 12 class NotFoundError(Exception): |
| 13 """Exception for a resource not being found (e.g. no logs)""" |
| 14 def __init__(self, message, location): |
| 15 self.location = location |
| 16 Exception.__init__(self, ': '.join([message, location])) |
| 17 |
| 18 |
| 19 class NotImplementedError(Exception): |
| 20 """Exception for a feature which is not implemented yet""" |
| 21 def __init__(self, message): |
| 22 Exception.__init__(self, message) |
| 23 |
| 24 |
| 25 class TimeoutError(Exception): |
| 26 """Exception for a download exceeding the allocated timeout""" |
| 27 def __init__(self): |
| 28 self.message = 'The download exceeded the allocated timeout' |
| 29 Exception.__init__(self, self.message) |
OLD | NEW |