Class CheckedProc<X,​E extends Exception>

  • Type Parameters:
    X - Type of input
    E - Exception's type
    All Implemented Interfaces:
    Proc<X>

    public final class CheckedProc<X,​E extends Exception>
    extends Object
    implements Proc<X>
    Proc that throws exception of specified type.
    Since:
    0.32
    • Constructor Detail

      • CheckedProc

        public CheckedProc​(Proc<X> original,
                           Func<Exception,​E> fnc)
        Ctor.
        Parameters:
        original - Original proc
        fnc - Function that wraps exceptions.
    • Method Detail

      • exec

        public void exec​(X input)
                  throws E extends Exception
        Description copied from interface: Proc
        Execute it.
        Specified by:
        exec in interface Proc<X>
        Parameters:
        input - The argument
        Throws:
        E extends Exception