␡
- Administered Ojbects
- Connections
- Sessions
- Message Producers
- Message Consumers
- Messages
- Exception Handling
< Back
Page 7 of 7
This chapter is from the book
3.7 Exception Handling
The root class for exceptions thrown by JMS API methods is JMSException. Catching JMSException provides a generic way of handling all exceptions related to the JMS API. The JMSException class includes the following subclasses:
- IllegalStateException
- InvalidClientIDException
- InvalidDestinationException
- InvalidSelectorException
- JMSSecurityException
- MessageEOFException
- MessageFormatException
- MessageNotReadableException
- MessageNotWriteableException
- ResourceAllocationException
- TransactionInProgressException
- TransactionRolledBackException
All the examples in this book catch and handle JMSException when it is appropriate to do so.
< Back
Page 7 of 7