private void errBadTextContent(DatatypeException e, Class<?> datatypeClass,
            String localName, String uri)
            throws SAXException, ClassNotFoundException {
        if (getErrorHandler() != null) {
            Html5DatatypeException ex5 = (Html5DatatypeException) e;
            String message = "The text content of element \u201c" + localName
                    + "\u201d was not in the required format: ";
            if (ex5.isWarning()) {
                message = "Double-check the text content of element \u201c"
                        + localName + "\u201d: ";
            }
            DatatypeMismatchException dme = new DatatypeMismatchException(
                    message + e.getMessage().split(": ")[1],
                    getDocumentLocator(), datatypeClass, ex5.isWarning());
            getErrorHandler().error(dme);
        }
    }
@see nu.validator.checker.Checker#endElement(java.lang.String,
     java.lang.String, java.lang.String)
src/nu/validator/checker/TextContentChecker.java