WebObjects 5.4.2

com.webobjects.jdbcadaptor
Class JDBCAdaptorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.webobjects.eoaccess.EOGeneralAdaptorException
                  extended by com.webobjects.jdbcadaptor.JDBCAdaptorException
All Implemented Interfaces:
Serializable

public class JDBCAdaptorException
extends EOGeneralAdaptorException

The JDBCAdaptor generally throws a JDBCAdaptorException when something goes wrong.

See Also:
Serialized Form

Constructor Summary
JDBCAdaptorException(SQLException sqlException)
          Creates a JDBCAdaptorException, using the message from sqlException.
JDBCAdaptorException(String message, SQLException sqlException)
          Creates a JDBCAdaptorException.
 
Method Summary
 SQLException sqlException()
          Returns the SQLException that prompted this JDBCAdaptorException.
 String toString()
           
 
Methods inherited from class com.webobjects.eoaccess.EOGeneralAdaptorException
userInfo
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCAdaptorException

public JDBCAdaptorException(String message,
                            SQLException sqlException)
Creates a JDBCAdaptorException.

Parameters:
message - a String explaining the reason for the exception
sqlException - a SQLException that prompted this JDBCAdaptorException (may be null).

JDBCAdaptorException

public JDBCAdaptorException(SQLException sqlException)
Creates a JDBCAdaptorException, using the message from sqlException.

Parameters:
sqlException - a SQLException that prompted this JDBCAdaptorException (null is not allowed for this variant of the constructor).
Method Detail

sqlException

public SQLException sqlException()
Returns the SQLException that prompted this JDBCAdaptorException.

Returns:
an SQLException

toString

public String toString()
Overrides:
toString in class Throwable

Last updated June 2008

Copyright © 2000-2008 Apple Inc.