ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Stating the types of the checked exceptions that can be thrown instead of throwing Exception.
This way they're more resilient to change.
This commit is contained in:
parent
4461f72dcf
commit
5d565508a7
1 changed files with 4 additions and 1 deletions
|
|
@ -172,9 +172,12 @@ public abstract class OrderElement {
|
|||
* list of advanceAssigments must be attached.
|
||||
* @param advanceAssigment
|
||||
* must be attached
|
||||
* @throws DuplicateValueTrueReportGlobalAdvanceException
|
||||
* @throws DuplicateAdvanceAssigmentForOrderElementException
|
||||
*/
|
||||
public void addAvanceAssigment(AdvanceAssigment newAdvanceAssigment)
|
||||
throws Exception {
|
||||
throws DuplicateValueTrueReportGlobalAdvanceException,
|
||||
DuplicateAdvanceAssigmentForOrderElementException {
|
||||
checkNoOtherGlobalAdvanceAssignment(newAdvanceAssigment);
|
||||
checkNoOtherAssignmentWithSameAdvanceType(this, newAdvanceAssigment);
|
||||
this.advanceAssigments.add(newAdvanceAssigment);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue