Package org.hive2hive.core.exceptions

Examples of org.hive2hive.core.exceptions.NoSessionException


    }

    H2HSession session;
    try {
      if (networkManager.getSession() == null) {
        throw new NoSessionException();
      } else {
        session = networkManager.getSession();
      }
    } catch (NoSessionException e) {
      logger.warn("Currently no user is logged in! Keys for decryption needed. Node ID = '{}'.",
View Full Code Here


  /**
   * Returns the session of the currently logged in user.
   */
  public H2HSession getSession() throws NoSessionException {
    if (session == null)
      throw new NoSessionException();
    return session;
  }
View Full Code Here

TOP

Related Classes of org.hive2hive.core.exceptions.NoSessionException

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.