net.sf.gluebooster.java.booster.basic.events.RuntimeExceptionThrowingThrowableHandler Maven / Gradle / Ivy
package net.sf.gluebooster.java.booster.basic.events;
import net.sf.gluebooster.java.booster.essentials.utils.ThrowableBoostUtils;
/**
* Changes the throwables into runtime exceptions and throws them again.
* @author CBauer
*
*/
public class RuntimeExceptionThrowingThrowableHandler implements ThrowableHandler{
@Override
public void handleThrowable(Throwable throwable) throws RuntimeException {
throw ThrowableBoostUtils.toRuntimeException(throwable);
}
}