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

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

Issue 1771263002: [devil] Detect if device is not charging properly. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 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 | « devil/devil/android/battery_utils_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/device_errors.py
diff --git a/devil/devil/android/device_errors.py b/devil/devil/android/device_errors.py
index ea14bf9ad8b9a7d144ce70fc4cd3559b0541c7b7..b1b8890f45105d6d2755bece46a80715677e0389 100644
--- a/devil/devil/android/device_errors.py
+++ b/devil/devil/android/device_errors.py
@@ -115,3 +115,10 @@ class NoAdbError(base_error.BaseError):
def __init__(self, msg=None):
super(NoAdbError, self).__init__(
msg or 'Unable to find adb.', is_infra_error=True)
+
+
+class DeviceChargingError(CommandFailedError):
+ """Exception for device charging errors."""
+
+ def __init__(self, message, device_serial=None):
+ super(DeviceChargingError, self).__init__(message, device_serial)
« no previous file with comments | « devil/devil/android/battery_utils_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698