Class Exceptions


  • public class Exceptions
    extends java.lang.Object
    Util to handle exceptions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Exceptions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean areExceptionsPresentInChain​(java.lang.Throwable error, java.lang.Class... types)  
      static void rethrowIOException​(java.lang.Throwable cause)  
      static java.lang.String toString​(java.lang.Exception ex)  
      • Methods inherited from class java.lang.Object

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

      • Exceptions

        public Exceptions()
    • Method Detail

      • rethrowIOException

        public static void rethrowIOException​(java.lang.Throwable cause)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(java.lang.Exception ex)
      • areExceptionsPresentInChain

        public static boolean areExceptionsPresentInChain​(java.lang.Throwable error,
                                                          java.lang.Class... types)