Code example for TransformerException

Methods: printStackTrace

0
	    manifestFile.close();
	} catch (IOException e) {
	    e.printStackTrace();
	    throw new CompilerException(e);
	} catch (TransformerException e) {
	    e.printStackTrace();
	    throw new CompilerException(e);
	} 
 
    } 
 
    private static Document parse(File manifest)
	    throws ParserConfigurationException, FileNotFoundException, 
	    SAXException, IOException { 
	DocumentBuilderFactory builderFactory = DocumentBuilderFactory
		.newInstance();
	DocumentBuilder builder = builderFactory.newDocumentBuilder();
 
	Document document = builder.parse(new FileInputStream(manifest));
	return document;
    }