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?