Package com.bugyal.imentor

Examples of com.bugyal.imentor.MentorException


  public Participant createParticipant(String name, String gender,
      Location location, String email, String facebookId) throws MentorException {
    long t = System.currentTimeMillis();
    Participant e = findParticipantByEmail(email);
    if (e != null) {
      throw new MentorException("Participant with email " + email
          + " already exists.");
    }
    Participant i = new Participant(name, gender, location, email, facebookId);
    save(i);
    createParticipantByEmailTimeState.inc(System.currentTimeMillis() - t);
View Full Code Here


    }

    if (results.size() == 0) {
      return null; // no participant is found.
    } else if (results.size() > 1) {
      throw new MentorException(
          "Multiple participants found with same email, needs cleanup. Email:: "
              + email);
    }
    isModified = false; // For LRUCache
//    cache.put(email, results.get(0));
View Full Code Here

  }

  @Override
  public void recommend(Participant i, Participant him)
      throws MentorException {
    throw new MentorException("Not implemented");
  }
View Full Code Here

TOP

Related Classes of com.bugyal.imentor.MentorException

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.