Class Utils
java.lang.Object
io.github.eutro.wasm2j.embed.internal.Utils
Miscellaneous utilities.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
rethrow
Rethrow the throwable. If it can be thrown unchecked, it will be, otherwise it will be wrapped in aRuntimeException
.This method does not return, but it is typed to return a runtime exception so the calling code can write:
try { // ... } catch (Throwable t) { throw rethrow(t); }
- Parameters:
t
- The throwable.- Returns:
- No it doesn't.
-