Class ExceptionUtil
- java.lang.Object
-
- org.apache.derby.shared.common.error.ExceptionUtil
-
public class ExceptionUtil extends java.lang.Object
This class provides utility routines for exceptions
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getSeverityFromIdentifier(java.lang.String messageID)
Get the severity given a message identifier from SQLState.static java.lang.String
getSQLStateFromIdentifier(java.lang.String messageID)
Convert a message identifer from org.apache.derby.shared.common.reference.SQLState to a SQLState five character string.
-
-
-
Method Detail
-
getSQLStateFromIdentifier
public static java.lang.String getSQLStateFromIdentifier(java.lang.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(java.lang.String messageID)
Get the severity given a message identifier from SQLState.
-
-