webdriver-0.8.5: a Haskell client for the Selenium WebDriver protocol

Safe HaskellNone
LanguageHaskell2010

Test.WebDriver.Exceptions

Synopsis

Documentation

newtype NoSessionId #

A command requiring a session ID was attempted when no session ID was available.

Constructors

NoSessionId String 

newtype BadJSON #

An error occured when parsing a JSON value.

Constructors

BadJSON String 
Instances
Eq BadJSON # 
Instance details

Defined in Test.WebDriver.JSON

Methods

(==) :: BadJSON -> BadJSON -> Bool #

(/=) :: BadJSON -> BadJSON -> Bool #

Show BadJSON # 
Instance details

Defined in Test.WebDriver.JSON

Exception BadJSON # 
Instance details

Defined in Test.WebDriver.JSON

data FailedCommand #

This exception encapsulates a broad variety of exceptions that can occur when a command fails.

data FailedCommandType #

The type of failed command exception that occured.

Instances
Bounded FailedCommandType # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Enum FailedCommandType # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Eq FailedCommandType # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Ord FailedCommandType # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Show FailedCommandType # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

data FailedCommandInfo #

Detailed information about the failed command provided by the server.

Constructors

FailedCommandInfo 

Fields

Instances
Show FailedCommandInfo #

Provides a readable printout of the error information, useful for logging.

Instance details

Defined in Test.WebDriver.Exceptions.Internal

FromJSON FailedCommandInfo # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

data StackFrame #

An individual stack frame from the stack trace provided by the server during a FailedCommand.

mkFailedCommandInfo :: WDSessionState s => String -> s FailedCommandInfo #

Constructs a FailedCommandInfo from only an error message.

failedCommand :: WDSessionStateIO s => FailedCommandType -> String -> s a #

Convenience function to throw a FailedCommand locally with no server-side info present.