Code example for ErrorHandler

Methods: error

0
  // of the normal SAX ErrorHandler stream, that's fine; Not Our Problem. 
  // 
  public void error(SAXParseException exception) throws SAXException
  { 
    if(null!=clientErrorHandler)
      clientErrorHandler.error(exception);
  } 
   
  public void fatalError(SAXParseException exception) throws SAXException
  { 
    // EXCEPTION: In this case we need to run the event BEFORE we yield -- 
    // just as with endDocument, this terminates the event stream. 
    if(null!=clientErrorHandler)
      clientErrorHandler.error(exception);
 
    eventcounter=0;     
    co_yield(false); 
 
  } 
   
  public void warning(SAXParseException exception) throws SAXException