Class ExceptionTransformer

java.lang.Object
de.chojo.sqlutil.exceptions.ExceptionTransformer

public final class ExceptionTransformer extends Object
Utilitites for database handling
  • Method Details

    • prettyException

      public static String prettyException(SQLException ex)
      Transforms a SQLException in an easy readable string with a message.
      Parameters:
      ex - sql exception
      Returns:
      input as pretty string
    • prettyException

      public static String prettyException(String message, SQLException ex)
      Transforms a SQLException in an easy readable string with a message.
      Parameters:
      message - Message
      ex - sql exception
      Returns:
      input as pretty string