All Questions
1 question
4
votes
2
answers
1k
views
Verifying Parameters in Constructor or Service
I was reading on this SO page about when to check parameters when constructing an object. The accepted answer suggests throwing the exception from the constructor so that an invalid object cannot be ...