Errors: Support a filter to control which errors are reported

Closes gh-728
Fixes #335