Class ExceptionUtils


  • @Internal
    public final class ExceptionUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.Throwable findRootCause​(@NotNull java.lang.Throwable throwable)
      Returns exception root cause or the exception itself if there are no causes
      • Methods inherited from class java.lang.Object

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

      • ExceptionUtils

        public ExceptionUtils()
    • Method Detail

      • findRootCause

        @NotNull
        public static @NotNull java.lang.Throwable findRootCause​(@NotNull
                                                                 @NotNull java.lang.Throwable throwable)
        Returns exception root cause or the exception itself if there are no causes
        Parameters:
        throwable - - the throwable
        Returns:
        the root cause