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

Unified Diff: build/android/pylib/device/device_errors.py

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/constants.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device/device_errors.py
diff --git a/build/android/pylib/device/device_errors.py b/build/android/pylib/device/device_errors.py
index c47c9668ed1a37b19556d6b5bf3e4262adac39f8..26d9eaf48b71c4c48a7b3cfa48a436b98fc70f07 100644
--- a/build/android/pylib/device/device_errors.py
+++ b/build/android/pylib/device/device_errors.py
@@ -7,14 +7,10 @@ Exception classes raised by AdbWrapper and DeviceUtils.
"""
from pylib import cmd_helper
+from pylib.utils import base_error
-class BaseError(Exception):
- """Base exception for all device and command errors."""
- pass
-
-
-class CommandFailedError(BaseError):
+class CommandFailedError(base_error.BaseError):
"""Exception for command failures."""
def __init__(self, message, device_serial=None):
@@ -64,19 +60,18 @@ class AdbShellCommandFailedError(AdbCommandFailedError):
['shell', command], output, status, device_serial, message)
-class CommandTimeoutError(BaseError):
+class CommandTimeoutError(base_error.BaseError):
"""Exception for command timeouts."""
pass
-class DeviceUnreachableError(BaseError):
+class DeviceUnreachableError(base_error.BaseError):
"""Exception for device unreachable failures."""
pass
-class NoDevicesError(BaseError):
+class NoDevicesError(base_error.BaseError):
"""Exception for having no devices attached."""
def __init__(self):
super(NoDevicesError, self).__init__('No devices attached.')
-
« no previous file with comments | « build/android/pylib/constants.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698