Example usage for javax.resource NotSupportedException NotSupportedException

List of usage examples for javax.resource NotSupportedException NotSupportedException

Introduction

In this page you can find the example usage for javax.resource NotSupportedException NotSupportedException.

Prototype

public NotSupportedException(String message, String errorCode) 

Source Link

Document

Constructs a new throwable with the specified detail message and error code.

Usage

From source file:com.grapevineim.xmpp.ra.ResourceAdapterImpl.java

public void endpointActivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec spec)
        throws NotSupportedException {
    LOG.info("[RA.endpointActivation()] Entered");

    try {// w  w w.j a  va 2 s.  c om
        XmppMessageListener l = new XmppMessageListenerImpl(workManager, messageEndpointFactory,
                (ActivationSpecImpl) spec);
        synchronized (messageListeners) {
            messageListeners.put(messageEndpointFactory, l);
        }
    } catch (Exception ex) {
        LOG.error("[RA.endpointActivation()] An Exception was caught while activating the endpoint");
        LOG.error("[RA.endpointActivation()] Please check the server logs for details");
        throw new NotSupportedException("Activation failed", ex);
    }
}