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
1.4m articles
1.4m replys
5 comments
57.0k users