com.canoo.webtest.engine
Class StepFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.tools.ant.BuildException
                  extended by com.canoo.webtest.engine.WebTestException
                      extended by com.canoo.webtest.engine.StepFailedException
All Implemented Interfaces:
Serializable

public final class StepFailedException
extends WebTestException

See Also:
Serialized Form

Constructor Summary
StepFailedException(String message)
           
StepFailedException(String message, Exception cause)
           
StepFailedException(String message, int expectedValue, int actualValue)
           
StepFailedException(String message, Step failedStep)
           
StepFailedException(String message, String expectedValue, String actualValue)
           
StepFailedException(String message, String expectedValue, String actualValue, Step failedStep)
           
 
Method Summary
static boolean isCausedByStepFailedException(Throwable e)
          Indicates if the provided exception is caused by a StepFailedException.
 
Methods inherited from class com.canoo.webtest.engine.WebTestException
addDetail, getDetails, getShortMessage, getUrlCurrentResponse, toString
 
Methods inherited from class org.apache.tools.ant.BuildException
getCause, getException, getLocation, printStackTrace, printStackTrace, printStackTrace, setLocation
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepFailedException

public StepFailedException(String message)

StepFailedException

public StepFailedException(String message,
                           String expectedValue,
                           String actualValue,
                           Step failedStep)

StepFailedException

public StepFailedException(String message,
                           int expectedValue,
                           int actualValue)

StepFailedException

public StepFailedException(String message,
                           String expectedValue,
                           String actualValue)

StepFailedException

public StepFailedException(String message,
                           Step failedStep)

StepFailedException

public StepFailedException(String message,
                           Exception cause)
Method Detail

isCausedByStepFailedException

public static boolean isCausedByStepFailedException(Throwable e)
Indicates if the provided exception is caused by a StepFailedException. Even if StepFailedException extends BuildException in some cases (for instance failed macro) the original StepFailedException is wrapped within a BuildException.

Parameters:
e - the exception to analyze
Returns:
true if the cause is a StepFailedException

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.