Package com.puzzlebazar.shared

Examples of com.puzzlebazar.shared.ObjectAlreadyInitializedException


   */
  @SuppressWarnings("unchecked")
  public void attachToPuzzleDetails(D puzzleDetails)
      throws ObjectAlreadyInitializedException, InvalidObjectException {
    if (this.puzzleDetails != null) {
      throw new ObjectAlreadyInitializedException("PuzzleDetails already set in PuzzleImpl.");
    }
    if (puzzleDetailsKey == null) {
      puzzleDetailsKey = (Key<D>) puzzleDetails.createKey();
    } else if (puzzleDetails.getId() != puzzleDetailsKey.getId()) {
      throw new InvalidObjectException("PuzzleDetails id doesn't match the one in PuzzleImpl.");
View Full Code Here


   * @throws ObjectAlreadyInitializedException Thrown if some PuzzleInfo is already attached to this object.
   * @throws InvalidObjectException If the attached puzzle details are invalid for this puzzle.
   */
  public void attachToPuzzleInfo(PuzzleInfoImpl puzzleInfo) throws ObjectAlreadyInitializedException, InvalidObjectException {
    if (this.puzzleInfo != null) {
      throw new ObjectAlreadyInitializedException("PuzzleInfo already set in PuzzleDetailsImpl.");
    }
    if (puzzleInfoKey == null) {
      puzzleInfoKey = puzzleInfo.createKey();
    } else if (puzzleInfo.getId() != puzzleInfoKey.getId()) {
      throw new InvalidObjectException("PuzzleInfo id doesn't match the one in PuzzleDetailsImpl.");
View Full Code Here

TOP

Related Classes of com.puzzlebazar.shared.ObjectAlreadyInitializedException

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.