validatesns icon indicating copy to clipboard operation
validatesns copied to clipboard

Return value when validation is successful?

Open ajbeach2 opened this issue 8 years ago • 1 comments

Im curious why there is no return value form the validates function when the validation succeeds. Is this the expected behavior?

ajbeach2 avatar Sep 04 '16 21:09 ajbeach2

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.

Sector95 avatar May 30 '17 18:05 Sector95