new JMSException()
This method is not meant to be used directly.
Creates a JMSException with the specified reason and error code.
Method Summary
- getErrorCode
- Gets the error code.
- getMessage
- Gets the exception message.
Method Detail
-
getErrorCode() → {String}
-
Gets the error code. The following error codes are used for specific error conditions on the JMS Extender:
- "JMSEXT_CONNECTION_DISABLED": the JMS Connector is not enabled; when an exception with this error code is reported, contact your system administrator;
- "JMSEXT_INVALID_CONNECTOR_NAME": the JMS Connector specified while connecting does not exist;
- "JMSEXT_CONNECTION_NOT_AVAILABLE": the JMS Connector is not able to obtain a connection to the JMS broker; under normal conditions this exception should never be reported;
- "JMSEXT_CONNECTION_TIMED_OUT": the connection to the JMS broker is temporarily not available; when this exception is reported, a previously requested operation could not be completed, the JMS Extender will reconnect as soon as possible and the operation can subsequently be retried;
- "JMSEXT_INVALID_ACK_MODE": an invalid ack mode has been requested;
- "JMSEXT_DUPS_OK_NOT_AVAILABLE": a session with ack mode DUPS_OK has been requested, but the JMS Connector and the underlying JMS broker do not support it;
- "JMSEXT_INDIVIDUAL_ACK_NOT_AVAILABLE": a session with ack mode INDIVIDUAL_ACK has been requested, but the JMS Connector and the underlying JMS broker do not support it.
Returns:
- Type
- String
-
getMessage() → {String}
-
Gets the exception message.
Returns:
- Type
- String