All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.javapla.chains.interfaces.Exceptional Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package net.javapla.chains.interfaces;

import java.util.function.Consumer;

//handling exceptions
public interface Exceptional {
    
    /**
     * 
     * @param c
     * @param t
     * @return
     */
     R exception(Consumer c, @SuppressWarnings("unchecked") Class ... t);
    
    /**
     * Single parameter to reduce overhead
     * @param c
     * @param t
     * @return
     */
     R exception(Consumer c, Class t);
    
    /**
     * Catch-all
     * @param c
     * @return
     */
    R exception(Consumer c);
    
    //R catchAll(Consumer c);
    
    //protected static void handleException(Throwable e) throws RuntimeException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy