net.thucydides.core.steps
Class StepFailure

Package class diagram package StepFailure
java.lang.Object
  extended by net.thucydides.core.steps.StepFailure

public class StepFailure
extends Object

Description and underlying cause behind a step failure. A StepFailure holds a description of the failed test step and the exception that was thrown while running it. In most cases the Description will be of a single test step.


Constructor Summary
StepFailure(ExecutedStepDescription description, Throwable cause)
           
 
Method Summary
 ExecutedStepDescription getDescription()
           
 Throwable getException()
           
 String getMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepFailure

public StepFailure(ExecutedStepDescription description,
                   Throwable cause)
Method Detail

getDescription

public ExecutedStepDescription getDescription()
Returns:
the raw description of the context of the failure.

getException

public Throwable getException()
Returns:
the exception thrown

getMessage

public String getMessage()


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.