| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 class DeviceUnreachableError(base_error.BaseError): | 79 class DeviceUnreachableError(base_error.BaseError): |
| 80 """Exception for device unreachable failures.""" | 80 """Exception for device unreachable failures.""" |
| 81 pass | 81 pass |
| 82 | 82 |
| 83 | 83 |
| 84 class NoDevicesError(base_error.BaseError): | 84 class NoDevicesError(base_error.BaseError): |
| 85 """Exception for having no devices attached.""" | 85 """Exception for having no devices attached.""" |
| 86 | 86 |
| 87 def __init__(self): | 87 def __init__(self): |
| 88 super(NoDevicesError, self).__init__('No devices attached.') | 88 super(NoDevicesError, self).__init__( |
| 89 'No devices attached.', is_infra_error=True) |
| OLD | NEW |