oracle.toplink.exceptions
Class TopLinkException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.toplink.exceptions.TopLinkException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BeanGenerationException, BuilderException, CacheSynchCommunicationException, CacheSynchronizationException, CommunicationException, ConcurrencyException, ConversionException, DatabaseException, DeploymentException, EJBJarXMLException, EJBQLException, JDOException, JMSProcessingException, OptimisticLockException, SessionLoaderException, SynchronizationException, ValidationException

public abstract class TopLinkException
extends java.lang.RuntimeException

Purpose: Any exception raised by TopLink should be a subclass of this exception class.

See Also:
Serialized Form

Constructor Summary
 
Method Summary
TypeMethod
 int getErrorCode()
          PUBLIC: Return the exception error code.
 java.lang.Throwable getInternalException()
          PUBLIC: Return the internal native exception.
 java.lang.String getMessage()
          PUBLIC: Return the exception error message.
 Session getSession()
          PUBLIC: Return the session
 void printStackTrace()
          PUBLIC: Print both the normal and internal stack traces.
 void printStackTrace(java.io.PrintStream outStream)
          PUBLIC: Print both the normal and internal stack traces.
 void printStackTrace(java.io.PrintWriter writer)
          PUBLIC: Print both the normal and internal stack traces.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail
Method Detail


getErrorCode

public int getErrorCode()
PUBLIC: Return the exception error code.

getInternalException

public java.lang.Throwable getInternalException()
PUBLIC: Return the internal native exception. TopLink frequently catches Java exceptions and wraps them in its own exception classes to provide more information. The internal exception can still be accessed if required.

getMessage

public java.lang.String getMessage()
PUBLIC: Return the exception error message. TopLink error messages are multi-line so that detail descriptions of the exception are given.
Overrides:
getMessage in class java.lang.Throwable

getSession

public Session getSession()
PUBLIC: Return the session

printStackTrace

public void printStackTrace()
PUBLIC: Print both the normal and internal stack traces.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream outStream)
PUBLIC: Print both the normal and internal stack traces.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
PUBLIC: Print both the normal and internal stack traces.
Overrides:
printStackTrace in class java.lang.Throwable