public class StepFailure
extends java.lang.Object
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 and Description |
---|
StepFailure(ExecutedStepDescription description,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ExecutedStepDescription |
getDescription() |
java.lang.Throwable |
getException() |
java.lang.Class<? extends java.lang.Throwable> |
getExceptionClass() |
java.lang.String |
getMessage() |
java.lang.StackTraceElement[] |
getStackTraceElements() |
public StepFailure(ExecutedStepDescription description, java.lang.Throwable cause)
public ExecutedStepDescription getDescription()
public java.lang.Throwable getException()
public java.lang.String getMessage()
public java.lang.Class<? extends java.lang.Throwable> getExceptionClass()
public java.lang.StackTraceElement[] getStackTraceElements()