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

io.github.novacrypto.toruntime.CheckedExceptionToRuntime Maven / Gradle / Ivy

The newest version!
package io.github.novacrypto.toruntime;

public final class CheckedExceptionToRuntime {
  public static  T toRuntime(Func function) {
    try {
      return function.run();
    } catch (Exception e) {
      throw new RuntimeException(e);
    } 
  }
  
  public static void toRuntime(Action function) {
    try {
      function.run();
    } catch (Exception e) {
      throw new RuntimeException(e);
    } 
  }
  
  public static interface Action {
    void run() throws Exception;
  }
  
  public static interface Func {
    T run() throws Exception;
  }
}


/* Location:              C:\Users\Administrator\Desktop\mnemonic-sdk-1.0.0.jar!\io\github\novacrypto\toruntime\CheckedExceptionToRuntime.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */




© 2015 - 2025 Weber Informatics LLC | Privacy Policy