Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
FailureStrategy |
|
| 1.0;1 |
1 | package org.jbehave.core.failures; | |
2 | ||
3 | /** | |
4 | * FailureStrategy allows to define failure handling strategies. Two standard | |
5 | * strategies are provided: | |
6 | * <ul> | |
7 | * <li>{@link SilentlyAbsorbingFailure}: silently absorbs the failure</li> | |
8 | * <li>{@link RethrowingFailure}: rethrows the failure</li> | |
9 | * </ul> | |
10 | */ | |
11 | public interface FailureStrategy { | |
12 | ||
13 | void handleFailure(Throwable throwable) throws Throwable; | |
14 | ||
15 | } |