Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, toString

0
        } catch (IOException e) {
            throw new RuntimeException("Unable to do IO correctly:" + e.getMessage());
        } catch (ParserConfigurationException e) {
            throw new RuntimeException("Serious parser configuration error:" + e.getMessage());
        } catch (SAXParseException e) {
            throw new RuntimeException(e.toString() +'\n' + "Line: " +e.getLineNumber() + '\n' + "Column: " + e.getColumnNumber());
        }catch (SAXException e) {
            throw new RuntimeException("Unknown sax error: " + e.getMessage());
        } 
    } 
 
    /** 
     * This class reads XML files in a SAX manner. 
     */ 
    private class SAXConverter extends DefaultHandler{
        private static final boolean DEBUG = false;
 
        public void startDocument() throws SAXException { 
            try { 
                myOut.writeLong(BinaryFormatConstants.BEGIN_FILE);
            } catch (IOException e) {