Search in sources :

Example 1 with MQInvalidSelectorRuntimeException

use of com.sun.messaging.jms.MQInvalidSelectorRuntimeException in project openmq by eclipse-ee4j.

the class JMSContextImpl method createBrowser.

@Override
public QueueBrowser createBrowser(Queue queue, String messageSelector) {
    checkNotClosed();
    disallowSetClientID();
    try {
        return session.createBrowser(queue, messageSelector);
    } catch (InvalidDestinationException e) {
        throw new MQInvalidDestinationRuntimeException(e);
    } catch (InvalidSelectorException e) {
        throw new MQInvalidSelectorRuntimeException(e);
    } catch (JMSException e) {
        throw new MQRuntimeException(e);
    }
}
Also used : InvalidSelectorException(jakarta.jms.InvalidSelectorException) MQInvalidDestinationRuntimeException(com.sun.messaging.jms.MQInvalidDestinationRuntimeException) MQInvalidSelectorRuntimeException(com.sun.messaging.jms.MQInvalidSelectorRuntimeException) InvalidDestinationException(jakarta.jms.InvalidDestinationException) JMSException(jakarta.jms.JMSException) MQRuntimeException(com.sun.messaging.jms.MQRuntimeException)

Aggregations

MQInvalidDestinationRuntimeException (com.sun.messaging.jms.MQInvalidDestinationRuntimeException)1 MQInvalidSelectorRuntimeException (com.sun.messaging.jms.MQInvalidSelectorRuntimeException)1 MQRuntimeException (com.sun.messaging.jms.MQRuntimeException)1 InvalidDestinationException (jakarta.jms.InvalidDestinationException)1 InvalidSelectorException (jakarta.jms.InvalidSelectorException)1 JMSException (jakarta.jms.JMSException)1