Code example for SAXException

Methods: getMessage

0
            PieDatasetHandler handler = new PieDatasetHandler();
            parser.parse(in, handler);
            result = handler.getDataset();
        } 
        catch (SAXException e) {
            System.out.println(e.getMessage());
        } 
        catch (ParserConfigurationException e2) {
            System.out.println(e2.getMessage());
        } 
        return result;
 
    } 
 
    /** 
     * Reads a {@link CategoryDataset} from a file. 
     * 
     * @param file  the file. 
     * 
     * @return A dataset. 
Connect your IDE to all the code out there  Get Codota for Java