Package uk.ac.bbsrc.tgac.miso.analysis.exception

Examples of uk.ac.bbsrc.tgac.miso.analysis.exception.InvalidRequestParameterException


    }
    else if (j.has("query")) {
      return generateQuery(j);
    }
    else {
      throw new InvalidRequestParameterException("Incoming request must be of type 'submit', 'tasks', or 'pipelines'");
    }
  }
View Full Code Here


        params.put(k, jparams.getString(k));
      }
      return new TaskSubmissionRequest(s.getString("priority"), s.getString("pipeline"), params);
    }
    else {
      throw new InvalidRequestParameterException("Invalid parameters for task creation. Cannot create task submission request: " + j.toString());
    }
  }
View Full Code Here

  private JSONObject generateQuery(JSONObject j) throws InvalidRequestParameterException {
    if (ProcessUtils.validateQueryJSON(j)) {
      return j;
    }
    else {
      throw new InvalidRequestParameterException("Invalid query. Cannot perform query: " + j.toString());
    }
  }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.analysis.exception.InvalidRequestParameterException

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.