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

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

Issue 265743002: [Android] Switch to new interfaces of GetAVDs and RestartAdbServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + nitfixes Created 6 years, 7 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 """
6 Exception classes raised by AdbWrapper and DeviceUtils.
7 """
8
9 class BaseError(Exception):
10 """Base exception for all device and command errors."""
11 pass
12
13
14 class CommandFailedError(BaseError):
15 """Exception for command failures."""
16
17 def __init__(self, cmd, msg, device=None):
18 super(CommandFailedError, self).__init__(
19 (('device %s: ' % device) if device else '') +
20 'adb command \'%s\' failed with message: \'%s\'' % (' '.join(cmd), msg))
21
22
23 class CommandTimeoutError(BaseError):
24 """Exception for command timeouts."""
25 pass
26
27
28 class DeviceUnreachableError(BaseError):
29 """Exception for device unreachable failures."""
30 pass
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698