Code example for ErrorHandler

Methods: error, fatalError

0
	private void error (String message)
	throws SAXException 
	{ 
	    if (handler == null)
		return; 
	    handler.error (new SAXParseException (message, locator));
	} 
 
	// nonrecoverable error 
	private void fatal (String message)
	throws SAXException 
	{ 
	    SAXParseException	spe;
	     
	    spe = new SAXParseException (message, locator);
	    if (handler != null)
		handler.fatalError (spe);
	    throw spe;
	} 
 
	// low severity problem 
	private void warn (String message)