Code example for SAXException

Methods: getException

0
        } catch (SAXException sxe) {
            // Error generated by this application 
            // (or a parser-initialization error) 
            Exception x = sxe;
 
            if (sxe.getException() != null) {
                x = sxe.getException();
            } 
 
            x.printStackTrace();
        } catch (ParserConfigurationException pce) {
            // Parser with specified options can't be built 
            pce.printStackTrace();
        } catch (IOException ioe) {
            // I/O error 
            ioe.printStackTrace();
        } 
    } // main 
}