| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| RethrowingFailure |
|
| 4.0;4 |
| 1 | package org.jbehave.core.failures; | |
| 2 | ||
| 3 | 459 | public final class RethrowingFailure implements FailureStrategy { |
| 4 | ||
| 5 | public void handleFailure(Throwable throwable) throws Throwable { | |
| 6 | 2 | if ( throwable instanceof UUIDExceptionWrapper ){ |
| 7 | 1 | throw ((UUIDExceptionWrapper)throwable).getCause(); |
| 8 | } | |
| 9 | 1 | throw throwable; |
| 10 | } | |
| 11 | ||
| 12 | } |