net.thucydides.core.steps
Class StepFailure
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepFailure
public StepFailure(ExecutedStepDescription description,
Throwable cause)
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.