Package org.fenixedu.academic.ui.struts.action.exceptions

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException


            error3 = new ActionError("error.noGroup");
            actionErrors3.add("error.noGroup", error3);
            saveErrors(request, actionErrors3);
            return mapping.findForward("viewShiftsAndGroups");
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        InfoSiteStudentGroup infoSiteStudentGroup = viewStudentGroup;

        request.setAttribute("infoSiteStudentGroup", infoSiteStudentGroup);
View Full Code Here


            error2 = new ActionError("error.noProject");
            actionErrors2.add("error.noProject", error2);
            saveErrors(request, actionErrors2);
            return mapping.findForward("viewExecutionCourseProjects");
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        request.setAttribute("infoSiteStudentsAndGroups", infoSiteStudentsAndGroups);

        return mapping.findForward("sucess");
View Full Code Here

            error = new ActionError("error.noGroup");
            actionErrors.add("error.noGroup", error);
            saveErrors(request, actionErrors);
            return mapping.findForward("viewShiftsAndGroups");
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        InfoSiteStudentGroup infoSiteStudentGroup = viewStudentGroup;

        request.setAttribute("infoSiteStudentGroup", infoSiteStudentGroup);
View Full Code Here

            actionErrors.add("errors.removeEnrolment.studentNotEnroled", error);
            saveErrors(request, actionErrors);
            return mapping.findForward("viewStudentGroupInformation");

        } catch (FenixServiceException e) {
            throw new FenixActionException(e);

        } catch (DomainException e) {
            ActionErrors actionErrors = new ActionErrors();
            ActionError error = null;
            error = new ActionError("error.studentGroup.cannotRemoveAttendsBecauseAlreadyHasProjectSubmissions");
View Full Code Here

            error2 = new ActionError("error.noProject");
            actionErrors2.add("error.noProject", error2);
            saveErrors(request, actionErrors2);
            return mapping.findForward("viewExecutionCourseProjects");
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        request.setAttribute("infoSiteStudentsAndGroups", infoSiteStudentsAndGroups);

        List<InfoExportGrouping> infoExportGroupings = ReadExportGroupingsByGrouping.run(groupPropertiesCodeString);
View Full Code Here

        List branches = null;
        try {
            branches = ReadBranchesByDegreeCurricularPlan.run(degreeCurricularPlanOID);
        } catch (FenixServiceException fse) {
            throw new FenixActionException(fse);
        }

        List newBranches = new ArrayList();
        if (branches != null) {
            Iterator iterator = branches.iterator();
View Full Code Here

                            lessonSeason2EndDate, lessonSeason2BeginDatePart2, lessonSeason2EndDatePart2, examsSeason1BeginDate,
                            examsSeason1EndDate, examsSeason2BeginDate, examsSeason2EndDate, examsSpecialSeasonBeginDate,
                            examsSpecialSeasonEndDate, gradeSubmissionNormalSeason1EndDate, gradeSubmissionNormalSeason2EndDate,
                            gradeSubmissionSpecialSeasonEndDate);
        } catch (IllegalDataAccessException e) {
            throw new FenixActionException(e);
        } catch (DomainException e) {
            addErrorMessage(BundleUtil.getString(Bundle.DOMAIN_EXCEPTION, e.getKey(), e.getArgs()));
            setChoosenDegreeCurricularPlansIDs(null);
            return "";
        }
View Full Code Here

        return "";
    }

    private void checkSelectedAttributes() throws FenixActionException, FenixServiceException {
        if (getSelectedCurricularRuleType() == null || getSelectedCurricularRuleType().equals(NO_SELECTION_STRING)) {
            throw new FenixActionException("must.select.curricular.rule.type");
        }
    }
View Full Code Here

        }
    }

    private void checkCompetenceCourse() throws FenixActionException {
        if (getCompetenceCourseID() == null) {
            throw new FenixActionException("error.mustChooseACompetenceCourse");
        }
    }
View Full Code Here

        }
    }

    protected void checkCourseGroup() throws FenixActionException {
        if (getCourseGroupID() == null || getCourseGroupID().equals(this.NO_SELECTION_STRING)) {
            throw new FenixActionException("error.mustChooseACourseGroup");
        }
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

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.