Code example for SAXNotRecognizedException

Methods: getMessage

0
    private static void setReaderFeature(XMLReader xmlReader, String featureName, boolean value){
        try { 
            xmlReader.setFeature(featureName, value);
 
        } catch (final SAXNotRecognizedException ex) {
            LOG.error("SAXNotRecognizedException: " + ex.getMessage());
 
        } catch (final SAXNotSupportedException ex) {
            LOG.error("SAXNotSupportedException:" + ex.getMessage());
        } 
    } 
 
    private static void setReaderProperty(XMLReader xmlReader, String propertyName, Object object){
        try { 
            xmlReader.setProperty(propertyName, object);
 
        } catch (final SAXNotRecognizedException ex) {
            LOG.error("SAXNotRecognizedException: " + ex.getMessage());
 
        } catch (final SAXNotSupportedException ex) {