Code example for SAXException

Methods: getException

0
      // Expected and harmless 
      if(DEBUG)System.out.println("Active IncrementalSAXSource_Filter normal stop exception");
    } 
    catch (SAXException ex)
    { 
      Exception inner=ex.getException();
      if(inner instanceof StopException){
        // Expected and harmless 
        if(DEBUG)System.out.println("Active IncrementalSAXSource_Filter normal stop exception");
      } 
      else 
      { 
        // Unexpected malfunction 
        if(DEBUG)
        { 
          System.out.println("Active IncrementalSAXSource_Filter UNEXPECTED SAX exception: "+inner);
          inner.printStackTrace();
        }                 
        arg=ex;
      } 
    } // end parse