Code example for SAXException

0
            LOG.warn("Warning occured during parsing", exception);
        } 
 
        @Override 
        public void error(SAXParseException exception) throws SAXException {
            throw new SAXException(exception);
        } 
 
        @Override 
        public void fatalError(SAXParseException exception) throws SAXException {
            throw new SAXException(exception);
        } 
 
    } 
 
}