Class ExceptionUtils

java.lang.Object
migratedb.v1.core.internal.util.ExceptionUtils

public final class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • getRootCause

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

      public static String getThrowLocation(Throwable e)
      Retrieves the exact location where this exception was thrown.
    • toMessage

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