Class ExceptionUtil


  • public class ExceptionUtil
    extends java.lang.Object
    Author:
    Peter Niederwieser
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void sneakyThrow​(java.lang.Throwable t)
      Allows to throw an unchecked exception without declaring it in a throws clause.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionUtil

        public ExceptionUtil()
    • Method Detail

      • sneakyThrow

        public static void sneakyThrow​(java.lang.Throwable t)
        Allows to throw an unchecked exception without declaring it in a throws clause.