Examples of AlreadyExistException


Examples of com.dotmarketing.exception.AlreadyExistException

    final DotConnect db = new DotConnect();
    try {
      WorkflowScheme schemeWithSameName = findSchemeByName(scheme.getName());
      if(UtilMethods.isSet(schemeWithSameName) && UtilMethods.isSet(schemeWithSameName.getId()) && !schemeWithSameName.getId().equals(scheme.getId())){
        throw new AlreadyExistException("Already exist a scheme with the same name ("+schemeWithSameName.getName()+"). Create different schemes with the same name is not allowed. Please change your workflow scheme name.");
      }
      if (isNew) {
       
        db.setSQL(sql.INSERT_SCHEME);
        db.addParam(scheme.getId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.