Package org.bioversityinternational.model

Examples of org.bioversityinternational.model.ModelException


   *         ModelException - if invalid modelURI parameter specified
   */
  protected ModelDocument(String modelURI, Boolean local) throws IOException, ModelException {
   
    if(modelURI == null) {
      throw new ModelException("ModelDocument(modelURI): modelURI cannot be null!") ;
    }
   
    if(_trace_level>= ModelDocument.VERBOSE) {
      System.err.println( "ModelDocument(modelURI:'"+modelURI+"')") ;
    }
View Full Code Here


    throws IOException, ModelException {
   
    this.language_code = language.trim() ;
    this.language_name = Language.getLanguage(this.language_code) ;
    if(this.language_name == null) {
      throw new ModelException("ModelDocument.setLanguage(): language code '"+
                    this.language_code+"' is unknown?") ;
    }
   
    // Accessing the translated model here?
    //
View Full Code Here

    } else {
     
      language_code = language.trim() ;
      language_name = Language.getLanguage(language_code) ;
      if(language_name == null) {
        throw new ModelException("CropDescriptorQuery.setLanguage(): language code '"+
                      language_code+"' is unknown?") ;
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.bioversityinternational.model.ModelException

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.