org.apache.derby.iapi.error
Class PublicAPI

java.lang.Object
  extended by org.apache.derby.iapi.error.PublicAPI

public class PublicAPI
extends java.lang.Object

Class that wraps StandardExceptions in a SQLException. This is used to make any public API methods always throw SQLException rather than a random collection. This wrapping is also special cased by TypeStatementException to avoid double wrapping of some errors.

This will get cleaned up in main.


Constructor Summary
PublicAPI()
           
 
Method Summary
static java.sql.SQLException wrapStandardException(StandardException se)
          Generates a SQLException for signalling that the operation failed due to a database error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicAPI

public PublicAPI()
Method Detail

wrapStandardException

public static java.sql.SQLException wrapStandardException(StandardException se)
Generates a SQLException for signalling that the operation failed due to a database error.


Built on Thu 2011-03-10 11:54:14+0000, from revision ???

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