News for hackers. Stuff that matters.
Re:Replacing Throwing Exceptions with Notification in Valida... by yazaddaruvala on Saturday December 13, 2014 @06:41PM (#8746923)
Tip for the author: Validations that only contain human readable text is a nicer pattern to follow than their exception counter parts, but its not complete. You will find yourself wanting to know, programmatically, which JSON key that error message was for.

    note.addError("numberOfSeats", "number of seats must be positive");

There are no comments on this comment yet.