RethrowingFailure.java

  1. package org.jbehave.core.failures;

  2. public final class RethrowingFailure implements FailureStrategy {

  3.     @Override
  4.     public void handleFailure(Throwable throwable) throws Throwable {
  5.         if (throwable instanceof UUIDExceptionWrapper) {
  6.             throw throwable.getCause();
  7.         }
  8.         throw throwable;
  9.     }

  10. }