Package org.jboss.remoting.samples.chat.exceptions

Examples of org.jboss.remoting.samples.chat.exceptions.NameInUseException


      throws NameInUseException
  {
    String name = member.get_name();

    if (members.contains(name))
        throw new NameInUseException();

    members.add(name);
  }
View Full Code Here


/*    */   public void addMember(ChatMember member) throws NameInUseException
/*    */   {
/* 71 */     String name = member.get_name();
/*    */
/* 73 */     if (this.members.contains(name)) {
/* 74 */       throw new NameInUseException();
/*    */     }
/* 76 */     this.members.add(name);
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.samples.chat.exceptions.NameInUseException

Copyright © 2018 www.massapicom. 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.