Code example for ErrorHandler

Methods: fatalError

0
        if (locator == null)
            e = new SAXParseException (message, null, null, -1, -1);
        else 
            e = new SAXParseException (message, locator);
        if (handler != null)
            handler.fatalError (e);
        throw e;
    } 
 
 
    public void startDocument () throws SAXException 
    { 
        elementStack.removeAllElements ();
        nsStack.reset ();
        pushedContext = false;
        super.startDocument (); 
    } 
 
    /** 
     * This call is not passed to the next consumer in the chain.