Package manifold.util

Class ManExceptionUtil


  • public class ManExceptionUtil
    extends Object
    • Constructor Detail

      • ManExceptionUtil

        public ManExceptionUtil()
    • 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 RuntimeException return type is here so you can do this:
        throw ManExceptionUtil.uncheck(new SomeException())