Small changes in Error class