Package 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:
- Serializable
- Direct Known Subclasses:
- DestinationResolutionException,- IllegalStateException,- InvalidClientIDException,- InvalidDestinationException,- InvalidSelectorException,- JmsSecurityException,- ListenerExecutionFailedException,- MessageConversionException,- MessageEOFException,- MessageFormatException,- MessageNotReadableException,- MessageNotWriteableException,- ReplyFailureException,- ResourceAllocationException,- SynchedLocalTransactionFailedException,- TransactionInProgressException,- TransactionRolledBackException,- UncategorizedJmsException
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:
- 
Constructor SummaryConstructorsConstructorDescriptionJmsException(String msg) Constructor that takes a message.JmsException(String msg, Throwable cause) Constructor that takes a message and a root cause.JmsException(Throwable cause) Constructor that takes a plain root cause, intended for subclasses mirroring correspondingjakarta.jmsexceptions.
- 
Method SummaryModifier and TypeMethodDescriptionConvenience method to get the vendor specific error code if the root cause was an instance of JMSException.Return the detail message, including the message from the linked exception if there is one.Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
JmsExceptionConstructor that takes a message.- Parameters:
- msg- the detail message
 
- 
JmsExceptionConstructor 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.
 
- 
JmsExceptionConstructor that takes a plain root cause, intended for subclasses mirroring correspondingjakarta.jmsexceptions.- Parameters:
- cause- the cause of the exception. This argument is generally expected to be a proper subclass of- JMSException.
 
 
- 
- 
Method Details- 
getErrorCodeConvenience 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
 
- 
getMessageReturn the detail message, including the message from the linked exception if there is one.- Overrides:
- getMessagein class- Throwable
- See Also:
 
 
-