com.caucho.ejb
Class FinderExceptionWrapper

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.ejb.FinderException
              extended by com.caucho.ejb.FinderExceptionWrapper
All Implemented Interfaces:
ExceptionWrapper, java.io.Serializable

public class FinderExceptionWrapper
extends FinderException
implements ExceptionWrapper

Wraps the actual exception with an EJB exception

See Also:
Serialized Form

Constructor Summary
FinderExceptionWrapper()
          Null constructors for Serializable
FinderExceptionWrapper(java.lang.String msg)
          Finder a basic FinderExceptionWrapper with a message.
FinderExceptionWrapper(java.lang.Throwable rootCause)
          Finder a FinderExceptionWrapper wrapping a root exception.
 
Method Summary
static FinderException create(java.lang.Throwable rootCause)
          Wraps and exception with a finder exception wrapper.
 java.lang.Throwable getRootCause()
          Returns the root exception if it exists.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FinderExceptionWrapper

public FinderExceptionWrapper()
Null constructors for Serializable


FinderExceptionWrapper

public FinderExceptionWrapper(java.lang.String msg)
Finder a basic FinderExceptionWrapper with a message.

Parameters:
msg - the exception message.

FinderExceptionWrapper

public FinderExceptionWrapper(java.lang.Throwable rootCause)
Finder a FinderExceptionWrapper wrapping a root exception.

Parameters:
rootCause - the underlying wrapped exception.
Method Detail

create

public static FinderException create(java.lang.Throwable rootCause)
Wraps and exception with a finder exception wrapper.


getRootCause

public java.lang.Throwable getRootCause()
Returns the root exception if it exists.

Specified by:
getRootCause in interface ExceptionWrapper
Returns:
the underlying wrapped exception.