| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| StepFailed |
|
| 1.0;1 |
| 1 | package org.jbehave.core.failures; | |
| 2 | ||
| 3 | import org.jbehave.core.model.OutcomesTable; | |
| 4 | ||
| 5 | /** | |
| 6 | * Thrown when a step execution has failed | |
| 7 | */ | |
| 8 | @SuppressWarnings("serial") | |
| 9 | public class StepFailed extends UUIDExceptionWrapper { | |
| 10 | ||
| 11 | public StepFailed(String step, Throwable cause) { | |
| 12 | 2 | super("'" + step + "': " + cause.getMessage(), cause); |
| 13 | 2 | } |
| 14 | ||
| 15 | public StepFailed(String step, OutcomesTable table) { | |
| 16 | 1 | super("'" + step + "': "+table, table.failureCause()); |
| 17 | 1 | } |
| 18 | ||
| 19 | } |