finish construct the error handle of htmlclean and simpledateparser