Package edu.uga.galileo.voci.exception

Examples of edu.uga.galileo.voci.exception.NoSuchProjectException


    try {
      Configuration.getConnectionPool().executeQuery(qp);
    } catch (SQLException e) {
      Logger.fatal("Couldn't execute query", e);
      throw new NoSuchProjectException("A SQLException was the cause: "
          + e.getMessage());
    }

    if (qp.getResultCount() < 1) {
      throw new NoSuchProjectException("No such record exists.");
    }

    return createObjectFromQueryParser(Project.class, qp);
  }
View Full Code Here


    try {
      Configuration.getConnectionPool().executeInsertOrUpdate(qp);
    } catch (SQLException e) {
      Logger.error("Couldn't execute SQL", e);
      throw new NoSuchProjectException("SQLException root ("
          + e.getMessage() + ")");
    }
  }
View Full Code Here

      }
    } catch (SQLException e1) {
      Logger.fatal("Couldn't execute query", e1);
    }

    throw new NoSuchProjectException(
        "Couldn't retrieve project handle for ID " + projectId);
  }
View Full Code Here

      }
    } catch (SQLException e1) {
      Logger.fatal("Couldn't execute query", e1);
    }

    throw new NoSuchProjectException(
        "Couldn't retrieve project ID for handle " + projectHandle);
  }
View Full Code Here

    if (idToProjectHandleHolder.containsKey(projectId)) {
      return idToProjectHandleHolder.get(projectId);
    }

    throw new NoSuchProjectException("Project ID " + projectId
        + " couldn't be found.");
  }
View Full Code Here

      if (idToProjectHandleHolder.get(key).equals(projectHandle)) {
        return key;
      }
    }

    throw new NoSuchProjectException("Project handle " + projectHandle
        + " couldn't be found.");
  }
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.exception.NoSuchProjectException

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.