com.caucho.jms2
Class JMSExceptionWrapper

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jms.JMSException
              extended by com.caucho.jms2.JMSExceptionWrapper
All Implemented Interfaces:
java.io.Serializable

public class JMSExceptionWrapper
extends JMSException

Wraps the actual exception with an JMS exception

See Also:
Serialized Form

Constructor Summary
JMSExceptionWrapper()
          Null constructor for beans
JMSExceptionWrapper(java.lang.String msg)
          Create a basic JMSExceptionWrapper with a message.
JMSExceptionWrapper(java.lang.Throwable rootCause)
          Create a JMSExceptionWrapper wrapping a root exception.
 
Method Summary
static JMSException create(java.lang.Throwable rootCause)
          Creates an JMSException from a throwable.
 java.lang.Throwable getCause()
          Returns the root exception if it exists.
 java.lang.Throwable getRootCause()
          Returns the root exception if it exists.
 
Methods inherited from class javax.jms.JMSException
getErrorCode, getLinkedException, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

JMSExceptionWrapper

public JMSExceptionWrapper()
Null constructor for beans


JMSExceptionWrapper

public JMSExceptionWrapper(java.lang.String msg)
Create a basic JMSExceptionWrapper with a message.

Parameters:
msg - the exception message.

JMSExceptionWrapper

public JMSExceptionWrapper(java.lang.Throwable rootCause)
Create a JMSExceptionWrapper wrapping a root exception.

Parameters:
rootCause - the underlying wrapped exception.
Method Detail

create

public static JMSException create(java.lang.Throwable rootCause)
Creates an JMSException from a throwable.


getRootCause

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

Returns:
the underlying wrapped exception.

getCause

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

Overrides:
getCause in class java.lang.Throwable
Returns:
the underlying wrapped exception.