Class ExceptionHelper


  • public final class ExceptionHelper
    extends Object
    Utility class with helpful functions for exceptions.
    • Method Detail

      • getRootCause

        public static Throwable getRootCause​(Throwable t)
        A wrapper to Commons Lang ExceptionUtils.getRootCause(Throwable) which ensures that the root is either an inner cause to the exception or the exception itself (rather than null).
      • getMessageOrName

        public static String getMessageOrName​(Throwable t)
      • getMessageFromExceptionOrCause

        public static String getMessageFromExceptionOrCause​(Throwable t)