validatesns
validatesns copied to clipboard
Return value when validation is successful?
Im curious why there is no return value form the validates function when the validation succeeds. Is this the expected behavior?
Appears so-- On any failure, you get a ValidateException, so checking for a return value isn't really useful. Just wrap the call in a try/catch if you don't want it to bomb out on failure. In most cases, you wouldn't want the code to continue on failure anyway.