io.github.novacrypto.toruntime.CheckedExceptionToRuntime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cwvj Show documentation
Show all versions of cwvj Show documentation
Java sdk for Dapps interact with cwv blockchain node
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