org.apache.derby.impl.jdbc
Class SQLExceptionFactory

java.lang.Object
  extended by org.apache.derby.impl.jdbc.SQLExceptionFactory
Direct Known Subclasses:
SQLExceptionFactory40

public class SQLExceptionFactory
extends java.lang.Object

Class to create SQLException


Constructor Summary
SQLExceptionFactory()
           
 
Method Summary
 java.sql.SQLException getArgumentFerry(java.sql.SQLException se)
          Unpack a SQL exception, looking for an EmbedSQLException which carries the Derby messageID and args which we will serialize across DRDA so that the client can reconstitute a SQLException with appropriate text.
 java.sql.SQLException getSQLException(java.lang.String message, java.lang.String messageId, java.sql.SQLException next, int severity, java.lang.Throwable t, java.lang.Object[] args)
          method to construct SQLException version specific drivers can overload this method to create version specific exceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExceptionFactory

public SQLExceptionFactory()
Method Detail

getSQLException

public java.sql.SQLException getSQLException(java.lang.String message,
                                             java.lang.String messageId,
                                             java.sql.SQLException next,
                                             int severity,
                                             java.lang.Throwable t,
                                             java.lang.Object[] args)
method to construct SQLException version specific drivers can overload this method to create version specific exceptions


getArgumentFerry

public java.sql.SQLException getArgumentFerry(java.sql.SQLException se)
Unpack a SQL exception, looking for an EmbedSQLException which carries the Derby messageID and args which we will serialize across DRDA so that the client can reconstitute a SQLException with appropriate text. If we are running JDBC3 or JDBC2, then we hope that the passed-in exception is already an EmbedSQLException, which carries all the information we need.


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.