pdevito3 / QueryKit

🎛️ QueryKit is a .NET library that makes it easier to query your data by providing a fluent and intuitive syntax for filtering and sorting.
Apache License 2.0
152 stars 13 forks source link

Catch invalid enums #27

Closed jthomperoo closed 6 months ago

jthomperoo commented 7 months ago

If an invalid enum is provided a System.ArgumentException is thrown, it would be nice if this was caught by QueryKit and thrown as QueryKit's ParsingException.

For example in the test setup this filter:

BirthMonth == invalid

Will throw the System.ArgumentException