Class JMSException
Creates a new JMSException instance.
JMSException is the common exception prototype for all exceptions thrown from JMS Client APIs.
| Constructor Summary |
JMSException()
Creates a new JMSException instance.
|
|
Method Summary
|
String
|
getErrorCode()
Returns a string representing an error code for the exception.
|
Error
|
getLinkedException()
Returns any exception that may have caused this exception
|
String
|
getMessage()
Returns a message for the cause of the exception
|
String
|
getType()
Returns the exception type.
|
void
|
setLinkedException(ex)
Sets the linked exception that caused this exception.
|
String
|
toString()
Returns a string representing the type and cause of the exception.
|
JMSException
JMSException()
Creates a new JMSException instance.
JMSException is the common exception prototype for all exceptions thrown from JMS Client APIs.
getErrorCode
String getErrorCode()
Returns a string representing an error code for the exception.
getLinkedException
Error getLinkedException()
Returns any exception that may have caused this exception
getMessage
String getMessage()
Returns a message for the cause of the exception
getType
String getType()
Returns the exception type. The type can be used to futher classify the exception thrown from
JavaScript client library.
The valid return values are -
1. ConnectionClosedException:
Exception raised when the JMS Client closes the connection due to a fatal error.
2. ConnectionDisconnectedException:
Exception raised when the Gateway closes the client connection, typically due to a fatal error.
3. ConnectionDroppedException:
Exception raised when the JMS Connection to the server is dropped during operation.
4. ConnectionFailedException:
Exception raised when the JMS Connection could not be established with the server.
5. ConnectionInterruptedException:
Exception raised when the JMS Connection is interrupted between Gateway and JMS Server.
6. ConnectionRestoredException:
Exception raised when the JMS Connection is restored. When a connection is either
interrupted(between the Gateway and the JMS Broker/Server) or dropped(between the JMS Client and the Gateway),
the client will try to restore the connection periodically.
7. ReconnectFailedException:
Exception thrown when a reconnect was attempted but failed.
8. TransactionNotCommittedException:
Exception raised when a JMS Transaction has not been reported back as committed prior
to connection close. It is possible that the transaction was committed by the broker,
but a network interruption caused the receipt to be lost in flight.
9. TransactionRolledBackException:
Exception raised when a JMS Transaction is rolled back due to an error.
10. MessageNotReadableException:
This exception must be thrown when a JMS client attempts to read a write-only message.
11. MessageNotWriteableException:
This exception must be thrown when a JMS client attempts to write to a read-only message.
12. IllegalStateException:
This exception is thrown when a method is invoked at an illegal or inappropriate time or if
the provider is not in an appropriate state for the requested operation.
13. InvalidDestinationException:
This exception must be thrown when a destination either is not understood by a provider or is no longer valid.
14. JMSSecurityException:
This exception must be thrown when a provider rejects a user name/password submitted by a client.
It may also be thrown for any case where a security restriction prevents a method from completing.
setLinkedException
void setLinkedException(ex)
Sets the linked exception that caused this exception.
Parameters:
Exception ex - The linked exception
toString
String toString()
Returns a string representing the type and cause of the exception.