Package com.calclab.emite.im.client.chat.pair

Examples of com.calclab.emite.im.client.chat.pair.PairChat.addErrorHandler()


          display.print("CHAT STATE " + chat.getURI() + " changed: " + event.getState(), Style.event);
        }
      });
     
      display.print("CHAT STATE " + chat.getURI() + " - " + chat.getChatState(), Style.event);
      chat.addErrorHandler(new ErrorEvent.Handler() {
        @Override
        public void onError(final ErrorEvent event) {
          final String stanza = event.getStanza() != null ? event.getStanza().toString() : "(no stanza)";
          display.print("CHAT ERROR " + chat.getURI() + ": " + event.getErrorType() + "- " + event.getDescription() + ": " + stanza, Style.error);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.