com.caucho.ejb
Class RemoveExceptionWrapper

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

public class RemoveExceptionWrapper
extends RemoveException
implements ExceptionWrapper

Wraps the actual exception with an EJB exception

See Also:
Serialized Form

Constructor Summary
RemoveExceptionWrapper()
          Null constructors for Serializable
RemoveExceptionWrapper(java.lang.String msg)
          Remove a basic RemoveExceptionWrapper with a message.
RemoveExceptionWrapper(java.lang.Throwable rootCause)
          Remove a RemoveExceptionWrapper wrapping a root exception.
 
Method Summary
static RemoveException create(java.lang.Throwable rootCause)
          Wraps and exception with a remove exception wrapper.
 java.lang.String getMessage()
          Returns the appropriate exception message.
 java.lang.Throwable getRootCause()
          Returns the root exception if it exists.
 java.lang.String toString()
          Print the exception as a string.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

RemoveExceptionWrapper

public RemoveExceptionWrapper()
Null constructors for Serializable


RemoveExceptionWrapper

public RemoveExceptionWrapper(java.lang.String msg)
Remove a basic RemoveExceptionWrapper with a message.

Parameters:
msg - the exception message.

RemoveExceptionWrapper

public RemoveExceptionWrapper(java.lang.Throwable rootCause)
Remove a RemoveExceptionWrapper wrapping a root exception.

Parameters:
rootCause - the underlying wrapped exception.
Method Detail

create

public static RemoveException create(java.lang.Throwable rootCause)
Wraps and exception with a remove 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.

getMessage

public java.lang.String getMessage()
Returns the appropriate exception message.

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Print the exception as a string.

Overrides:
toString in class java.lang.Throwable