Code example for SAXParseException

Methods: getException, getMessage

0
        throw new MessageException(exception.getMessage());
    } 
 
    public void fatalError(SAXParseException exception) throws SAXException
    { 
        if ((exception.getException() != null) && (exception.getException() instanceof MessageException))
            throw (MessageException)exception.getException();
        throw new MessageException(exception.getMessage());
    } 
 
    public void warning(SAXParseException exception) throws SAXException
    { 
        throw new MessageException(exception.getMessage());
    } 
 
    private static Class[] attribArr = new Class[]{Attributes.class};
}