Code example for TransformerException

Methods: getMessage

0
		try {			 
			ByteArrayOutputStream os = new ByteArrayOutputStream();
			serializer.write(item, os);
			itemXml = os.toString();
		} catch (TransformerException e) {
			throw new CommunicationException(e.getMessage(), e);
		} catch (ParserConfigurationException e) {
			throw new CommunicationException("ParserConfigurationException while marshalling item to publish", e);
		} catch (Exception e) {
			throw new CommunicationException("Exception while marshalling item to publish", e);
		} 
		return (String)invokeRemoteMethod(new IMethodInvocation<Pubsub>() {
			public Object invoke(Pubsub pubsub) throws Throwable {
				return pubsub.publisherPublish(pubsubServiceJid, node, itemId, itemXml);
			} 
		}); 
	} 
	 
	public void publisherDelete(final IIdentity pubsubService, final String node, final String itemId) throws XMPPError, CommunicationException {
		invokeRemoteMethod(new IMethodInvocation<Pubsub>() { 
			public Object invoke(Pubsub pubsub) throws Throwable {