[Feature Proposal] Allow error property regex matching #15
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Many times errors from 3rd parties are just of type Error and have to be inspected. What if we supported error property regex/string-matching? Thus:
In addition to:
we would support
Which would match for this error:
This would also work
This regex/string matching of error property should also work for N-levels. If the error was of type DuplicateError, these would be equivalent:
This would also be supported in the alternate API of allowing the errors to be in an array.
Requirements:
The text was updated successfully, but these errors were encountered: