VAB: Catch Wrong Configuration Exceptions

Topics: Validation Application Block
Mar 2, 2007 at 2:34 PM

Now ValidationFactory.CreateValidator<>() throws all internal configuration exceptions upstairs.
So, for instance, if there is a mistake in a described RuleSet configuration in config file we have ArgumentException (or something like that) has been thrown. Is there a way to handle all exceptions I could have with wrong validator's configuration and, let's say, log them to a specified logging source.

I mean that catching all .CreateValidator() calls is not a good idea and it would be really nice to have a built-in method to handle such configuraion issues.

Mar 2, 2007 at 2:36 PM
Perhaps internally use an exception policy for such exeptions...