Code example for SAXException

Methods: getClass, getMessage

0
            if (lHandler != null) {
                try { 
                    parser.setProperty("http://xml.org/sax/properties/lexical-handler", lHandler);
                } catch (SAXException ex) {
                    Message.warn("problem while setting the lexical handler property on SAXParser (" 
                            + ex.getClass().getName() + ": " + ex.getMessage() + ")");
                    // continue without the lexical handler 
                } 
            } 
 
            parser.parse(xmlStream, handler);
        } finally { 
            if (schemaStream != null) {
                try { 
                    schemaStream.close();
                } catch (IOException ex) {
                    // ignored 
                } 
            } 
        } 
    }