Code example for SAXException

Methods: getExceptiongetMessage

0
                    "IOException was thrown.", exception);
 
            pmdException.fillInStackTrace();
            throw pmdException;
        } catch (SAXException exception) {
            if (exception.getMessage() == REJECT_NOT_INCLUDED) {
                // Return a null rule set to indicate that it should not be included. 
                return null; 
            } 
 
            Throwable originalException = exception.getException();
 
            if (originalException instanceof PMDException) {
                throw (PMDException) originalException;
            } 
 
            String message = "SAXException was thrown.";
            PMDException pmdException = new PMDException(message, exception);
 
            pmdException.fillInStackTrace();
            throw pmdException;
        } catch (Exception exception) {
            PMDException pmdException = new PMDException(