com.canoo.webtest.engine
Class WebTestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tools.ant.BuildException
com.canoo.webtest.engine.WebTestException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- StepExecutionException, StepFailedException
public class WebTestException
- extends BuildException
Base class for WebTest exceptions.
- Author:
- Marc Guillemot
- See Also:
- Serialized Form
WebTestException
protected WebTestException(String message,
Throwable cause)
WebTestException
protected WebTestException(String message,
Step failedStep,
Throwable cause)
- Parameters:
failedStep - may only be null for testing purposes *
WebTestException
protected WebTestException(String message,
Step failedStep)
- Parameters:
failedStep - may only be null for testing purposes *
WebTestException
protected WebTestException(String shortMessage,
String messageEnd,
Step failedStep)
- Parameters:
failedStep - may only be null for testing purposes *
getDetails
public List getDetails()
- Gets details of the exception
- Returns:
- a list of
NameValuePair
addDetail
public void addDetail(String name,
String value)
getShortMessage
public String getShortMessage()
- Gets the short form of the message. This is what will be displayed as
error cause in the report. The detailed information from
getDetails()
receives a special formatting. This may be the same than Throwable.getMessage() when for instance
no detail information is available.
- Returns:
- the short message
toString
public String toString()
- Overrides:
toString in class BuildException
getUrlCurrentResponse
public String getUrlCurrentResponse()
- Gets the url of the current response when the exception occurred
- Returns:
- "-- none --" when no current response was available