Package uk.ac.ebi.fgpt.conan.service.exception

Examples of uk.ac.ebi.fgpt.conan.service.exception.MissingRequiredParameterException


                                            Map<String, String> inputValues,
                                            ConanProcess process) {
    for (ConanParameter param : process.getParameters()) {
      // validate our request by checking we have this param value supplied
      if (inputValues.get(param.getName()) == null) {
        throw new MissingRequiredParameterException(
                "Required parameter '" + param.getName() + "' not supplied, " +
                "required for process '" + process.getName() + "'");
      }
      else {
        if (!parameters.containsKey(param)) {
View Full Code Here


        if (!parameters.containsKey(param)) {
          parameters.put(param, inputValues.get(param.getName()));
        }
      }
      else {
        throw new MissingRequiredParameterException(
                "Required parameter '" + param.getName() + "' not supplied, " +
                "required for process '" + process.getName() + "'");
      }
    }
View Full Code Here

TOP

Related Classes of uk.ac.ebi.fgpt.conan.service.exception.MissingRequiredParameterException

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.