Examples of InvalidModelException


Examples of com.baasbox.dao.exception.InvalidModelException

  }
 

  public void checkModelDocument(ODocument doc) throws InvalidModelException {
    if (doc!=null && !doc.getClassName().equalsIgnoreCase(this.MODEL_NAME))
      throw new InvalidModelException();
  }
View Full Code Here

Examples of com.baasbox.dao.exception.InvalidModelException

    if (!(doc instanceof ODocument)) throw new IllegalArgumentException(rid +" is a rid not referencing a valid Document");
    try{
      checkModelDocument((ODocument)doc);
    }catch(InvalidModelException e){
      //the rid may reference a ORecordBytes which is not a ODocument
      throw new InvalidModelException("the rid " + rid + " is not valid belong to the collection " + this.MODEL_NAME);
    }
    if (Logger.isTraceEnabled()) Logger.trace("Method End");
    return (ODocument)doc;
  }
View Full Code Here

Examples of com.baasbox.dao.exception.InvalidModelException

    if(existingUser!=null){
      String username = null;
      try {
        username = UserService.getUsernameByProfile(existingUser);
        if(username==null){
          throw new InvalidModelException("username for profile is null");
        }
      } catch (InvalidModelException e) {
        internalServerError("unable to login with "+socialNetwork+" : "+e.getMessage());
      }
     
View Full Code Here

Examples of com.baasbox.dao.exception.InvalidModelException

    ODocument doc=listOfFiles.get(0);
    try{
      checkModelDocument((ODocument)doc);
    }catch(InvalidModelException e){
      //the id may reference a ORecordBytes which is not a ODocument
      throw new InvalidModelException("the id " + id + " is not a file " + this.MODEL_NAME);
    }
    return doc;
 
View Full Code Here

Examples of com.cloutree.modelevaluator.exception.InvalidModelException

//      PredictiveModel rModel = new RPredictiveModel();
//     
//      return rModel;
//    }
   
    throw new InvalidModelException();
 
    }
View Full Code Here

Examples of com.cloutree.modelevaluator.exception.InvalidModelException

     */
    public static PredictiveModel getPredictiveModel(ModelTypes implementation, File file) throws Exception {
 
      PredictiveModel predModel = getPredictiveModel(implementation);
      if(predModel == null)
        throw new InvalidModelException();
   
      // Set File
      if(!file.exists()) {
        throw new Exception("Model File not found! " + file.getAbsolutePath());
      }
View Full Code Here

Examples of com.jayway.jsonpath.InvalidModelException

    public int getArrayIndex(){
        Matcher matcher = ARRAY_INDEX_PATTERN.matcher(fragment);
        if(matcher.find()){
            return Integer.parseInt(matcher.group(1));
        }
        else throw new InvalidModelException("Could not get array index from fragment " + fragment);
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.InvalidModelException

    }

    public void checkValid() throws InvalidModelException
    {
        if (symbolicName == null)
            throw new InvalidModelException(this, "Bundle symbolic name not set");
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.InvalidModelException

    @Override
    public void checkValid() throws InvalidModelException
    {
        if (name == null)
        {
            throw new InvalidModelException(this, "Package name must be set");
        }
    }
View Full Code Here

Examples of org.apache.sling.models.factory.InvalidModelException

                    e = new InvalidAdaptableException(msg);
                    break;
                case FAILED_CALLING_POST_CONSTRUCT:
                case NO_MODEL_ANNOTATION:
                case NO_USABLE_CONSTRUCTOR:
                    e = new InvalidModelException(msg);
                    break;
                case MISSING_CONSTRUCTOR_PARAMS:
                case MISSING_FIELDS:
                case MISSING_METHODS:
                    e = new MissingElementsException(failureType.message, missingElements, clazz);
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.