3 ms·
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
by yazaddaruvala 12y ago
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");