Implemented ErrorHandler.