blob: 5b56aa9b64fc3d789f8564c00d2f1c6d50dffb75 [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""PyAuto Errors."""
class JavascriptRuntimeError(RuntimeError):
"""Represent an error raised by injected Javascript."""
class JSONInterfaceError(RuntimeError):
"""Represent an error in the JSON IPC interface."""
class AutomationCommandFail(JSONInterfaceError):
"""Represent an automation command failure.
These failures are passed back from the Chrome side of the IPC.
class AutomationCommandTimeout(JSONInterfaceError):
"""Represent an automation command failure due to timeout."""
class NTPThumbnailNotShownError(RuntimeError):
"""Represent an error while attempting to manipulate a NTP thumbnail.
This is due to it not being visible to a real user.