Code example for ErrorHandler

Methods: warning

0
 
	if (locator == null)
	    err = new SAXParseException (description, null, null, -1, -1);
	else 
	    err = new SAXParseException (description, locator);
	errHandler.warning (err);
    } 
 
    // package private (for ChildrenRecognizer) 
    private void error (String description)
    throws SAXException 
    { 
	ErrorHandler		errHandler = getErrorHandler ();
	Locator			locator = getDocumentLocator ();
	SAXParseException	err;
 
	if (locator == null)
	    err = new SAXParseException (description, null, null, -1, -1);
	else 
	    err = new SAXParseException (description, locator);
	if (errHandler != null)