Code example for SAXParseException

Methods: getException

0
     *  
     * @param e 
     *            L'exception SAX à traiter 
     */ 
    protected void printSAXException(final SAXParseException e) {
        if (e.getException() != null) {
            e.getException().printStackTrace();
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     *  
     * @see org.xml.sax.helpers.DefaultHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) 
     */ 
    public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException {
        // CHECKSTYLE:OFF later 
        if (qName.equalsIgnoreCase(XML_CLASSPATH_BALISE)) {
            // Classpath 
        } else if (qName.equalsIgnoreCase(XML_CLASSPATHENTRY_BALISE)) {
            // CHECKSTYLE:ON