this.setDegree(degree);
}
private void check(final MobilityApplicationProcess applicationProcess, final Teacher teacher, final Degree degree) {
if (applicationProcess == null) {
throw new DomainException("error.erasmus.coordinator.candidacyProcess.must.not.be.null");
}
if (teacher == null) {
throw new DomainException("error.erasmus.coordinator.teacher.must.not.be.null");
}
if (degree == null) {
throw new DomainException("error.erasmus.coordinator.degree.must.not.be.null");
}
if (applicationProcess.isTeacherErasmusCoordinatorForDegree(teacher, degree)) {
throw new DomainException("error.erasmus.coordinator.teacher.is.assigned.for.process.and.degree");
}
}