OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """PyAuto Errors.""" | 5 """PyAuto Errors.""" |
6 | 6 |
7 class JavascriptRuntimeError(RuntimeError): | 7 class JavascriptRuntimeError(RuntimeError): |
8 """Represent an error raised by injected Javascript.""" | 8 """Represent an error raised by injected Javascript.""" |
9 pass | 9 pass |
10 | 10 |
11 | 11 |
12 class JSONInterfaceError(RuntimeError): | 12 class JSONInterfaceError(RuntimeError): |
13 """Represent an error in the JSON ipc interface.""" | 13 """Represent an error in the JSON ipc interface.""" |
14 pass | 14 pass |
15 | 15 |
16 | 16 |
17 class AutomationCommandFail(JSONInterfaceError): | |
18 """Represent an error caught by in an automation command.""" | |
Nirnimesh
2012/08/15 00:11:21
Add: indicates errors coming from chrome side.
craigdh
2012/08/15 00:50:58
Done.
| |
19 pass | |
20 | |
21 | |
17 class NTPThumbnailNotShownError(RuntimeError): | 22 class NTPThumbnailNotShownError(RuntimeError): |
18 """Represent an error while attempting to manipulate a NTP thumbnail. | 23 """Represent an error while attempting to manipulate a NTP thumbnail. |
19 | 24 |
20 This is due to it not being visible to a real user. | 25 This is due to it not being visible to a real user. |
21 """ | 26 """ |
22 pass | 27 pass |
OLD | NEW |