You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
PersonNotFoundException can only be initialized using the empty constructor and does not have an error message. Also, DuplicatePersonException can only be initialized with a default error message.
The lack of error message and undescriptive error messages in exceptions aren't helpful for debugging purposes.
I'm suggesting that we can pass in the Person object as a parameter (and we call Person#toString() as the value for the error message) when constructing these exceptions, so that we can know which Person object caused the exception.
The text was updated successfully, but these errors were encountered:
PersonNotFoundException
can only be initialized using the empty constructor and does not have an error message. Also,DuplicatePersonException
can only be initialized with a default error message.The lack of error message and undescriptive error messages in exceptions aren't helpful for debugging purposes.
I'm suggesting that we can pass in the
Person
object as a parameter (and we callPerson#toString()
as the value for the error message) when constructing these exceptions, so that we can know whichPerson
object caused the exception.The text was updated successfully, but these errors were encountered: