Errors: Support a filter to control which errors are reported

Fixes #335
@mrjoelkemp, yes! If you don't mind, let's do that way?