net.javapla.chains.interfaces.Exceptional Maven / Gradle / Ivy
package net.javapla.chains.interfaces;
import java.util.function.Consumer;
//handling exceptions
public interface Exceptional {
/**
*
* @param c
* @param t
* @return
*/
R exception(Consumer super Throwable> c, @SuppressWarnings("unchecked") Class ... t);
/**
* Single parameter to reduce overhead
* @param c
* @param t
* @return
*/
R exception(Consumer super Throwable> c, Class t);
/**
* Catch-all
* @param c
* @return
*/
R exception(Consumer super Throwable> c);
//R catchAll(Consumer super Throwable> c);
//protected static void handleException(Throwable e) throws RuntimeException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy