Code example for ErrorListener

Methods: fatalError

0
  public void fatalError (SAXParseException e)
    throws SAXException 
  { 
    try 
      { 
        listener.fatalError (new TransformerException (e));
      } 
    catch (TransformerException te)
      { 
        throw getSAXException (te);
      } 
  } 
 
  private SAXException getSAXException (TransformerException e)
  { 
    Throwable cause = e.getCause ();
    if (cause instanceof SAXException)
      { 
        return (SAXException) cause;
      } 
Experience pair programming with AI  Get Codota for Java