Package manifold.util
Class ManExceptionUtil
- java.lang.Object
-
- manifold.util.ManExceptionUtil
-
public class ManExceptionUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ManExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeExceptionunchecked(Throwable t)Throws an unchecked exception without having to declare or catch it.
-
-
-
Method Detail
-
unchecked
public static RuntimeException unchecked(Throwable t)
Throws an unchecked exception without having to declare or catch it.- Parameters:
t- Any exception- Returns:
- The
RuntimeExceptionreturn type is here so you can do this:
throw ManExceptionUtil.uncheck(new SomeException())
-
-