News for hackers. Stuff that matters.
Re:Replacing Throwing Exceptions with Notification in Valida... by dragonwriter on Saturday December 13, 2014 @07:24PM (#8747020)
> If you want to use some of the same validation code for user input validation and internal validation, I suppose you could modify the notation pattern to conditionally throw an exception when adding a new error depending on whether it's on the client or the server.

Or you reuse the validation code itself, but called from a wrapper that turns notifications into exceptions, rather than adding branches.

There are no comments on this comment yet.