Package edu.wpi.cs.wpisuitetng.exceptions

Examples of edu.wpi.cs.wpisuitetng.exceptions.ConflictException


        save(s,p);
      }
      else
      {
        logger.log(Level.WARNING, "Project Name Conflict Exception during Project creation.");
        throw new ConflictException("A project with the given name already exists. Entity String: " + content);
      }
    }
    else
    {
      logger.log(Level.WARNING, "ID Conflict Exception during Project creation.");
      throw new ConflictException("A project with the given ID already exists. Entity String: " + content);
    }
   
    logger.log(Level.FINER, "Project creation success!");
    return p;
  }
View Full Code Here


        {
          // check for conflict for changing the project name
          Project isConflict = getEntityByName(s, change.getName())[0];
          if(isConflict != null && !isConflict.getIdNum().equals(change.getIdNum()))
          {
            throw new ConflictException("ProjectManager attempted to update a Project's name to be the same as an existing project");
          }
         
          toUpdate.setName(change.getName());
        }
       
View Full Code Here

      save(s,p);
    }
    else
    {
      logger.log(Level.WARNING, "Conflict Exception during User creation.");
      throw new ConflictException("A user with the given ID already exists. Entity String: " + content);
    }

    logger.log(Level.FINE, "User creation success!");

    return p;
View Full Code Here

TOP

Related Classes of edu.wpi.cs.wpisuitetng.exceptions.ConflictException

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.