, , , , , NullPointerException, PersonException, , , , , . Person ? , - , ? - , Person ?
The fact that you are in two minds about the exceptions that apply to both objects just reinforces my problems. I suggest rethinking the design of your exceptions (EntityNotFoundException, BadArgumentException, MinorCannotOrderPornException), and the answer to your dilemma, we hope, will be more obvious.
source
share