Some types that are going to be validated can contain properties that throw an exception.
public class MyClass
{
public string Name => throw new InvalidOperationException();
}
By default the behavior should be similar to validation in MVC.
- If MVC swallows that exception then MiniValidatorPlus should swallow that too.
- If MVC throws an exception then MiniValidatorPlus should throw exception too but will add option to swallow exceptions in property getters.