Is it recommended or not to throw exceptions from Validation methods like:
ValidateDates(); ValidateCargoDetails();
Apart from this : Is there a robust validation design pattern often used?
I would suggest returning a ValidationResult object containing ValidationFailures. You should never use exceptions as part of your logical coding. Exceptions are for exceptions
2.1m questions
2.1m answers
60 comments
57.0k users