Errors: Support a filter to control which errors are reported

Fixes #335
This is fine and a good description, but perhaps "writing a filter and writing a reporter" belong elsewhere in the docs.