Package com.wordpress.salaboy.emergencyservice.web.task.exception

Examples of com.wordpress.salaboy.emergencyservice.web.task.exception.FormValidationException


  @Override
  protected void validate(Map<String, String> formSubmittedData)
      throws FormValidationException {
    String notes = formSubmittedData.get("Update Situation");
    if (notes == null || notes.isEmpty()) {
      throw new FormValidationException(
          "Sir, please include an update!");
    }
    try {
                    //because of multiple selection list in UI, the
                    //value of 'Serverity' can have a '_' at the beginning
                    Integer.parseInt(formSubmittedData.get("Severity").replaceAll("_", ""));
    } catch (NumberFormatException nfe) {
      throw new FormValidationException("Severity must be a number");
    }
  }
View Full Code Here


  @Override
  protected void validate(Map<String, String> formSubmittedData)
      throws FormValidationException {
    String selected = formSubmittedData.get("Suggested Procedures");
    if (selected == null || selected.isEmpty()) {
      throw new FormValidationException("Not recognized procedure");
    }

  }
View Full Code Here

  @Override
  protected void validate(Map<String, String> formSubmittedData)
      throws FormValidationException {
    String notes = formSubmittedData.get("Update Situation");
    if (notes == null || notes.isEmpty()) {
      throw new FormValidationException(
          "Doctor, please include an update!");
    }
    try {
                    //because of multiple selection list in UI, the
                    //value of 'Serverity' can have a '_' at the beginning
                    Integer.parseInt(formSubmittedData.get("Severity").replaceAll("_", ""));
    } catch (NumberFormatException nfe) {
      throw new FormValidationException("Severity must be a number");
    }
  }
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.emergencyservice.web.task.exception.FormValidationException

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.