Package net.thucydides.core.steps
Class StepFailure
java.lang.Object
net.thucydides.core.steps.StepFailure
public class StepFailure
extends java.lang.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
Constructors Constructor Description StepFailure(ExecutedStepDescription description, java.lang.Throwable cause)
-
Method Summary
Modifier and Type Method Description ExecutedStepDescription
getDescription()
java.lang.Throwable
getException()
java.lang.Class<? extends java.lang.Throwable>
getExceptionClass()
java.lang.String
getMessage()
java.lang.StackTraceElement[]
getStackTraceElements()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StepFailure
-
-
Method Details
-
getDescription
- Returns:
- the raw description of the context of the failure.
-
getException
public java.lang.Throwable getException()- Returns:
- the exception thrown
-
getMessage
public java.lang.String getMessage() -
getExceptionClass
public java.lang.Class<? extends java.lang.Throwable> getExceptionClass() -
getStackTraceElements
public java.lang.StackTraceElement[] getStackTraceElements()
-