errorHandler class added