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

Side by Side Diff: build/android/pylib/device/device_errors.py

Issue 420273006: [Android] Fix DeviceUtils.__str__ when no serial is provided. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 Exception classes raised by AdbWrapper and DeviceUtils. 6 Exception classes raised by AdbWrapper and DeviceUtils.
7 """ 7 """
8 8
9 class BaseError(Exception): 9 class BaseError(Exception):
10 """Base exception for all device and command errors.""" 10 """Base exception for all device and command errors."""
(...skipping 19 matching lines...) Expand all
30 30
31 class CommandTimeoutError(BaseError): 31 class CommandTimeoutError(BaseError):
32 """Exception for command timeouts.""" 32 """Exception for command timeouts."""
33 pass 33 pass
34 34
35 35
36 class DeviceUnreachableError(BaseError): 36 class DeviceUnreachableError(BaseError):
37 """Exception for device unreachable failures.""" 37 """Exception for device unreachable failures."""
38 pass 38 pass
39 39
40
41 class NoDevicesError(BaseError):
42 """Exception for having no devices attached."""
43
44 def __init__(self):
45 super(NoDevicesError, self).__init__('No devices attached.')
46
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698