Code example for SAXException

Methods: getException

0
        // If it's an exception wrapped in a SAXException, rip off the outer SAX 
        // exception. 
        // 
        caught = e;
 
        Exception inner = e.getException();
        if (inner instanceof RuntimeException) {
          throw (RuntimeException) inner;
        } else if (inner != null) {
          caught = inner;
        } 
 
      } catch (ParserConfigurationException e) {
        caught = e;
      } catch (IOException e) {
        caught = e;
      } finally { 
        Utility.close(reader);
      } 
 
      if (caught != null) {