Class ExceptionUtils


  • public final class ExceptionUtils
    extends Object
    • Constructor Detail

      • ExceptionUtils

        public ExceptionUtils()
    • Method Detail

      • getRootCause

        public static @Nullable Throwable getRootCause​(@Nullable Throwable throwable)
        Returns:
        The root cause or the throwable itself if it doesn't have a cause.
      • toMessage

        public static String toMessage​(SQLException e)
        Transforms the details of this SQLException into a nice readable message.