Validation Class - should return false or throw exception?

I am creating a class that validates strings. There are many reasons why the string might not pass.

Would it make more sense to throw an exception, or return false/error code? Pros/cons?

7
задан Andy Hin 25 May 2011 в 20:03
поделиться