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

Unified Diff: build/android/devil/android/device_errors.py

Issue 1501843002: [Android] Use more specific host platforms for devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better handling of the no adb case Created 5 years 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 | « .gitignore ('k') | build/android/devil/android/sdk/adb_wrapper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/device_errors.py
diff --git a/build/android/devil/android/device_errors.py b/build/android/devil/android/device_errors.py
index ef6e3a9a00f8f4864ecec534825a924c81a8e81b..2fe5a8009434cdc0453071a5e3ceeeffb59ae3fc 100644
--- a/build/android/devil/android/device_errors.py
+++ b/build/android/devil/android/device_errors.py
@@ -41,6 +41,7 @@ class _BaseCommandFailedError(CommandFailedError):
message = ''.join(message)
super(_BaseCommandFailedError, self).__init__(message, device_serial)
+
class AdbCommandFailedError(_BaseCommandFailedError):
"""Exception for adb command failures."""
@@ -106,3 +107,11 @@ class NoDevicesError(base_error.BaseError):
def __init__(self):
super(NoDevicesError, self).__init__(
'No devices attached.', is_infra_error=True)
+
+
+class NoAdbError(base_error.BaseError):
+ """Exception for being unable to find ADB."""
+
+ def __init__(self):
+ super(NoAdbError, self).__init__(
+ 'Unable to find adb.', is_infra_error=True)
« no previous file with comments | « .gitignore ('k') | build/android/devil/android/sdk/adb_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698