Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 from pylib import cmd_helper | 9 from pylib import cmd_helper |
| 10 from pylib.utils import base_error | 10 from pylib.utils import base_error |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 class DeviceUnreachableError(base_error.BaseError): | 68 class DeviceUnreachableError(base_error.BaseError): |
| 69 """Exception for device unreachable failures.""" | 69 """Exception for device unreachable failures.""" |
| 70 pass | 70 pass |
| 71 | 71 |
| 72 | 72 |
| 73 class NoDevicesError(base_error.BaseError): | 73 class NoDevicesError(base_error.BaseError): |
| 74 """Exception for having no devices attached.""" | 74 """Exception for having no devices attached.""" |
| 75 | 75 |
| 76 def __init__(self): | 76 def __init__(self): |
| 77 super(NoDevicesError, self).__init__('No devices attached.') | 77 super(NoDevicesError, self).__init__('No devices attached.') |
| 78 | |
| 79 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.
| |
| 80 """Exception for device version failures.""" | |
| 81 | |
| 82 def __init__(self, message, device_serial=None): | |
| 83 super(DeviceVersionError, self).__init__(message, device_serial) | |
| OLD | NEW |