Top Description Constructors Methods
org.apache.derby.shared.common.error

public Class PublicAPI

extends Object
Class Inheritance
Imports
java.sql.SQLException

Class that wraps StandardExceptions in a SQLException. This is used to make any public API methods always throw SQLException rather than a random collection.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SQLException

Returns:

a SQLException wrapped around the original exception
wrapStandardException
(StandardException
The exception to wrap inside a SQLException
se
)

Generates a SQLException for signalling that the operation failed due to a database error.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PublicAPIback to summary
public PublicAPI()

Method Detail

wrapStandardExceptionback to summary
public static SQLException wrapStandardException(StandardException se)

Generates a SQLException for signalling that the operation failed due to a database error.

Parameters
se:StandardException

The exception to wrap inside a SQLException

Returns:SQLException

a SQLException wrapped around the original exception