>throwing custom Exceptions when validation failsDo peepo still really?
It just works.
>>106470512Why are exceptions bad again?
>>106470512I do this.
>>106470658They're heavyweight. That's fine if recovery isn't possible, in which case you want to capture and log as much data about what happened as possible. But if the exception is due to trying to insert a letter into integer storage, you really don't need all that overhead as the recovery pattern is to not do the insert and inform the user that they're retarded for entering crap. Also it makes it obvious to the developer that they were being lazy shits with input validation.