Code example for ErrorHandler

Methods: fatalError

0
                + exception.getColumnNumber()
                + ": " 
                + exception.getMessage(),
            exception);
        if (errorHandler != null) {
            errorHandler.fatalError(exception);
        } else { 
            throw exception;
        } 
    } 
 
    /** 
     * Forward notification of a parse warning to the application supplied 
     * error handler (if any).  Unlike XMLParser.error(SAXParseException) and 
     * XMLParser.fatalError(SAXParseException), this implementation will 
     * NOT throw a SAXException by default if no error handler is supplied. 
     * 
     * @param exception The warning information 
     * 
     * @exception SAXException if a parsing exception occurs 
     */