Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, toString

0
 
            logger.info("Parsing file " + lexiconPath);
            parser.parse(lexiconPath, senseHandler);
        } catch (SAXParseException spex) {
            logger.error("Problem while parsing entry " + currentKey
                    + ":" + spex.getLineNumber() + ":"
                    + spex.getColumnNumber() + ": " + spex.toString());
        } catch (Exception ex) {
            logger.error("Problem: " + ex);
            ex.printStackTrace();
        } 
    } 
 
    /** 
     * Insert our senses into our SQL table. 
     */ 
    public void insertSense(String lexicon, String lexQuery,
            String id, String n, String level, String shortDef) {
 
        try { 
            int entryID;