Adds support for Errors.