Code example for ErrorHandler

Methods: fatalError

0
SAXParseException	spe;
	     
	    spe = new SAXParseException (message, locator);
	    if (handler != null)
		handler.fatalError (spe);
	    throw spe;
	} 
 
	// low severity problem 
	private void warn (String message)
	throws SAXException 
	{ 
	    if (handler == null)
		return; 
	    handler.warning (new SAXParseException (message, locator));
	} 
 
	// callbacks: 
 
	public void setDocumentLocator (Locator l)