Example usage for javax.naming LimitExceededException getMessage

List of usage examples for javax.naming LimitExceededException getMessage

Introduction

In this page you can find the example usage for javax.naming LimitExceededException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:org.restcomm.connect.interpreter.rcml.Parser.java

@Override
public void onReceive(final Object message) throws Exception {
    final Class<?> klass = message.getClass();
    final ActorRef self = self();
    final ActorRef sender = sender();
    if (GetNextVerb.class.equals(klass)) {
        try {/*w  w w. j a va 2s.  c o m*/
            final Tag verb = next();
            if (verb != null) {
                sender.tell(verb, self);
                if (logger.isDebugEnabled()) {
                    logger.debug("Parser, next verb: " + verb.toString());
                }
            } else {
                final End end = new End();
                sender.tell(end, sender);
                if (logger.isDebugEnabled()) {
                    logger.debug("Parser, next verb: " + end.toString());
                }
            }
        } catch (LimitExceededException e) {
            logger.warn(e.getMessage());
            sender.tell(new ParserFailed(e, xml), null);
        }
    }
}