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

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

Issue 1040473002: [android] Create Battery Utils to seperate power functionality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 26d9eaf48b71c4c48a7b3cfa48a436b98fc70f07..36b66e75b14747c4ed12aac63814c170d13a164e 100644
--- a/build/android/pylib/device/device_errors.py
+++ b/build/android/pylib/device/device_errors.py
@@ -75,3 +75,9 @@ class NoDevicesError(base_error.BaseError):
def __init__(self):
super(NoDevicesError, self).__init__('No devices attached.')
+
+class DeviceVersionError(CommandFailedError):
jbudorick 2015/03/31 18:30:19 nit: move this up, either before AdbCommandFailedE
rnephew (Wrong account) 2015/03/31 19:36:45 Done.
+ """Exception for device version failures."""
+
+ def __init__(self, message, device_serial=None):
+ super(DeviceVersionError, self).__init__(message, device_serial)

Powered by Google App Engine
This is Rietveld 408576698