Code example for TransformerException

Methods: printStackTrace

0
			serializer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
 
			serializer.transform(new DOMSource(doc), new StreamResult(out));
		} catch (TransformerException e) {
			// this is fatal, just dump the stack and throw a runtime exception 
			e.printStackTrace();
			throw new RuntimeException(e);
		} 
	} 
 
}