Skip to content

Property with getter throwing error - option to swallow exceptions #20

@luboshl

Description

@luboshl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions