net.lenni0451.lambdaevents.utils.ThrowingExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of LambdaEvents Show documentation
Show all versions of LambdaEvents Show documentation
Fast and modular event library for Java
The newest version!
package net.lenni0451.lambdaevents.utils;
import lombok.SneakyThrows;
import net.lenni0451.lambdaevents.AHandler;
import net.lenni0451.lambdaevents.IExceptionHandler;
/**
* An {@link IExceptionHandler} which rethrows the exception
*/
public class ThrowingExceptionHandler implements IExceptionHandler {
@Override
@SneakyThrows
public void handle(AHandler handler, Object event, Throwable t) {
throw t;
}
}