Support for clearing only subset errors

Hello,
I made a small patch to allow clear only some errors instead of entire errors hash.
Hoping could be useful.