Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: mozdownload/errors.py

Issue 1451373002: Updating mozdownload (excluding tests) (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/mozdownload@master
Patch Set: Updated README.md Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mozdownload/cli.py ('k') | mozdownload/factory.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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)
OLDNEW
« no previous file with comments | « mozdownload/cli.py ('k') | mozdownload/factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698