Class StepFailure

java.lang.Object
net.thucydides.model.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 Details

  • Method Details

    • 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()
    • getExceptionClass

      public Class<? extends Throwable> getExceptionClass()
    • getStackTraceElements

      public StackTraceElement[] getStackTraceElements()