Package io.cucumber.plugin.event
Class Result
- java.lang.Object
-
- io.cucumber.plugin.event.Result
-
@API(status=STABLE) public final class Result extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DurationgetDuration()ThrowablegetError()Returns the error encountered while executing a step or scenario.StatusgetStatus()inthashCode()StringtoString()
-
-
-
Method Detail
-
getStatus
public Status getStatus()
-
getDuration
public Duration getDuration()
-
getError
public Throwable getError()
Returns the error encountered while executing a step or scenario. Will return null when passed. May return null when undefined in case of the empty scenario or when skipped due to a failing prior step.- Returns:
- the error encountered while executing a step or scenario.
-
-