Code example for ErrorHandler

Methods: error

	if (locator == null)
	    err = new SAXParseException (description, null, null, -1, -1);
	    err = new SAXParseException (description, locator);
	if (errHandler != null)
	    errHandler.error (err);
	else	// else we always treat it as fatal! 
	    throw err;
    private void fatalError (String description)
    throws SAXException 
	ErrorHandler		errHandler = getErrorHandler ();
	Locator			locator = getDocumentLocator ();
	SAXParseException	err;
	if (locator != null)
	    err = new SAXParseException (description, locator);
Connect your IDE to all the code out there  Get Codota for Java