Class ExceptionUtil

java.lang.Object
org.apache.derby.shared.common.error.ExceptionUtil

public class ExceptionUtil extends Object
This class provides utility routines for exceptions
  • Constructor Details

    • ExceptionUtil

      public ExceptionUtil()
  • Method Details

    • getSQLStateFromIdentifier

      public static String getSQLStateFromIdentifier(String messageID)
      Convert a message identifer from org.apache.derby.shared.common.reference.SQLState to a SQLState five character string.
      Parameters:
      messageID - - the sql state id of the message from Derby
      Returns:
      String - the 5 character code of the SQLState ID to returned to the user
    • getSeverityFromIdentifier

      public static int getSeverityFromIdentifier(String messageID)
      Get the severity given a message identifier from SQLState.