Introduce new error handling API.