Examples of ParameterNotFoundException


Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getRoleId(HttpServletRequest request) throws ParameterNotFoundException {
        String roleId = request.getParameter(Constants.ROLE_PARAM);
        if ((roleId == null) || roleId.equals("")) {
            throw new ParameterNotFoundException("role id not found");
        }

        return new Integer(roleId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getScheduleId(HttpServletRequest request) throws ParameterNotFoundException {
        String scheduleId = request.getParameter(Constants.SCHEDULE_PARAM);
        if ((scheduleId == null) || scheduleId.equals("")) {
            throw new ParameterNotFoundException("schedule id not found");
        }

        return new Integer(scheduleId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getResourceTypeId(HttpServletRequest request) throws ParameterNotFoundException {
        String resourceTypeId = request.getParameter(Constants.RESOURCE_TYPE_ID_PARAM);
        if ((resourceTypeId == null) || resourceTypeId.equals("")) {
            throw new ParameterNotFoundException("resource type id not found");
        }

        return new Integer(resourceTypeId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getAutogroupResourceTypeId(HttpServletRequest request) throws ParameterNotFoundException {
        String autogrouptypeId = request.getParameter(Constants.AUTOGROUP_TYPE_ID_PARAM);
        if ((autogrouptypeId == null) || autogrouptypeId.equals("")) {
            throw new ParameterNotFoundException("autogroup resource type id not found");
        }

        return new Integer(autogrouptypeId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getUserId(HttpServletRequest request) throws ParameterNotFoundException {
        String userId = request.getParameter(Constants.USER_PARAM);
        if ((userId == null) || userId.equals("")) {
            throw new ParameterNotFoundException("user id not found");
        }

        return new Integer(userId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static Integer getMetricId(HttpServletRequest request) throws ParameterNotFoundException {
        String metricId = request.getParameter(Constants.METRIC_ID_PARAM);
        if ((metricId == null) || metricId.equals("")) {
            throw new ParameterNotFoundException("metric baseline param not found");
        }

        return new Integer(metricId);
    }
View Full Code Here

Examples of org.rhq.enterprise.gui.legacy.exception.ParameterNotFoundException

     * @throws ParameterNotFoundException if the parameter was not specified
     */
    public static String getUrl(HttpServletRequest request) {
        String url = request.getParameter(Constants.URL_PARAM);
        if ((url == null) || url.equals("")) {
            throw new ParameterNotFoundException(Constants.URL_PARAM);
        }

        return url;
    }
View Full Code Here

Examples of org.ros.exception.ParameterNotFoundException

   */
  public static byte getAPin(int analog_input,
                             BoardLayout layout) throws ParameterNotFoundException{
    if (layout == BoardLayout.MiniLayout) {
      if (analog_input < 0 || analog_input > 5)
        throw new ParameterNotFoundException("Analog pin number out of range [0..5].");
      return (byte)(AI0 + analog_input);
    } else {
      if (analog_input < 0 || analog_input > 15)
        throw new ParameterNotFoundException("Analog pin number out of range [0..15].");
      return (byte)(A0 + analog_input);
    }
  }
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.