Added error provider interface

Error provider interface for known errors.