| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.springframework.core.NestedRuntimeException org.springframework.jms.JmsException
All known Subclasses: org.springframework.jms.support.converter.MessageConversionException, org.springframework.jms.InvalidSelectorException, org.springframework.jms.InvalidDestinationException, org.springframework.jms.UncategorizedJmsException, org.springframework.jms.ResourceAllocationException, org.springframework.jms.TransactionRolledBackException, org.springframework.jms.MessageNotWriteableException, org.springframework.jms.connection.SynchedLocalTransactionFailedException, org.springframework.jms.MessageFormatException, org.springframework.jms.MessageEOFException, org.springframework.jms.TransactionInProgressException, org.springframework.jms.JmsSecurityException, org.springframework.jms.IllegalStateException, org.springframework.jms.InvalidClientIDException, org.springframework.jms.MessageNotReadableException, org.springframework.jms.support.destination.DestinationResolutionException, org.springframework.jms.listener.adapter.ListenerExecutionFailedException,
JmsException | abstract public class JmsException extends NestedRuntimeException (Code) | | Base class for exception thrown by the framework whenever it
encounters a problem related to JMS.
author: Mark Pollack author: Juergen Hoeller since: 1.1 |
Constructor Summary | |
public | JmsException(String msg) Constructor that takes a message. | public | JmsException(String msg, Throwable cause) Constructor that takes a message and a root cause.
Parameters: msg - the detail message Parameters: cause - the cause of the exception. | public | JmsException(Throwable cause) Constructor that takes a plain root cause, intended for
subclasses mirroring corresponding javax.jms exceptions.
Parameters: cause - the cause of the exception. |
Method Summary | |
public String | getErrorCode() Convenience method to get the vendor specific error code if
the root cause was an instance of JMSException. | public String | getMessage() Return the detail message, including the message from the linked exception
if there is one. |
JmsException | public JmsException(String msg)(Code) | | Constructor that takes a message.
Parameters: msg - the detail message |
JmsException | public JmsException(String msg, Throwable cause)(Code) | | Constructor that takes a message and a root cause.
Parameters: msg - the detail message Parameters: cause - the cause of the exception. This argument is generallyexpected to be a proper subclass of javax.jms.JMSException,but can also be a JNDI NamingException or the like. |
JmsException | public JmsException(Throwable cause)(Code) | | 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 generallyexpected to be a proper subclass of javax.jms.JMSException. |
getErrorCode | public String getErrorCode()(Code) | | Convenience method to get the vendor specific error code if
the root cause was an instance of JMSException.
a string specifying the vendor-specific error code if theroot cause is an instance of JMSException, or null |
getMessage | public String getMessage()(Code) | | Return the detail message, including the message from the linked exception
if there is one.
See Also: javax.jms.JMSException.getLinkedException |
|
|