Package org.fenixedu.academic.domain.exceptions

Examples of org.fenixedu.academic.domain.exceptions.FieldIsRequiredException


    public Thesis(Degree degree, Enrolment enrolment, MultiLanguageString title) {
        this();

        if (degree == null) {
            throw new FieldIsRequiredException("enrolment", "thesis.degree.required");
        }

        if (enrolment == null) {
            throw new FieldIsRequiredException("enrolment", "thesis.enrolment.required");
        }

        setDegree(degree);
        setEnrolment(enrolment);
        setTitle(title);
View Full Code Here


    }

    @Override
    public void setTitle(MultiLanguageString title) {
        if (title == null || title.isEmpty()) {
            throw new FieldIsRequiredException("title", "thesis.title.required");
        }

        super.setTitle(title);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.exceptions.FieldIsRequiredException

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.