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 Details

  • Method Details

    • getDescription

      public ExecutedStepDescription 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()