Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.jms
Class JmsException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  org.springframework.core.NestedRuntimeException
                      org.springframework.jms.JmsException

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  DestinationResolutionException, IllegalStateException, InvalidClientIDException, InvalidDestinationException, InvalidSelectorException, JmsSecurityException, ListenerExecutionFailedException, MessageConversionException, MessageEOFException, MessageFormatException, MessageNotReadableException, MessageNotWriteableException, ResourceAllocationException, SynchedLocalTransactionFailedException, TransactionInProgressException, TransactionRolledBackException, UncategorizedJmsException

    public abstract class JmsException

extends NestedRuntimeException

Base class for exception thrown by the framework whenever it encounters a problem related to JMS.

Since:
  1.1
Author:
  Mark Pollack, Juergen Hoeller
See Also:
  Serialized Form

Constructor Summary
`JmsException(java.lang.String msg)` Constructor that takes a message.
`JmsException(java.lang.String msg, java.lang.Throwable cause)` Constructor that takes a message and a root cause.
`JmsException(java.lang.Throwable cause)` Constructor that takes a plain root cause, intended for subclasses mirroring corresponding `javax.jms` exceptions.

Method Summary
`java.lang.String` | `getErrorCode()` Convenience method to get the vendor specific error code if the root cause was an instance of JMSException.
`java.lang.String` | `getMessage()` Return the detail message, including the message from the linked exception if there is one.

Methods inherited from class org.springframework.core.NestedRuntimeException
`contains, getMostSpecificCause, getRootCause`

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, 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

### JmsException

    public JmsException(java.lang.String msg)

  Constructor that takes a message.

  Parameters:
    `msg` - the detail message

### JmsException

    public JmsException(java.lang.String msg,
                        java.lang.Throwable cause)

  Constructor that takes a message and a root cause.

  Parameters:
    `msg` - the detail message
    `cause` - the cause of the exception. This argument is generally expected to be a proper subclass of `JMSException`, but can also be a JNDI NamingException or the like.

### JmsException

    public JmsException(java.lang.Throwable cause)

  Constructor that takes a plain root cause, intended for subclasses mirroring corresponding `javax.jms` exceptions.

  Parameters:
    `cause` - the cause of the exception. This argument is generally expected to be a proper subclass of `JMSException`.

Method Detail

### getErrorCode

    public java.lang.String getErrorCode()

  Convenience method to get the vendor specific error code if the root cause was an instance of JMSException.

  Returns:
    a string specifying the vendor-specific error code if the root cause is an instance of JMSException, or `null`

### getMessage

    public java.lang.String getMessage()

  Return the detail message, including the message from the linked exception if there is one.

  Overrides:
    `getMessage` in class `NestedRuntimeException`
  See Also:
    `JMSException.getLinkedException()`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD