private void validateState() throws ModelCtorException {
    ModelCtorException ex = new ModelCtorException();

    if ((getIdParam(IDVISITA) == null && getIdParam(IDEVENTO) == null)
        || (getIdParam(IDVISITA) != null && getIdParam(IDEVENTO) != null)) {
      ex.add("You must choose either an event or a visit");
    }

    if (!ex.isEmpty()) throw ex;
  }
Example #2
0
  private void validateState() throws ModelCtorException {
    ModelCtorException ex = new ModelCtorException();

    if (!ex.isEmpty()) throw ex;
  }