org.apache.derby.shared.common.error
Class ExceptionUtil

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

public class ExceptionUtil
extends java.lang.Object

This class provides utility routines for exceptions


Constructor Summary
ExceptionUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
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.


Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.