Java Code Examples for javax.xml.bind.JAXBException#setLinkedException()
The following examples show how to use
javax.xml.bind.JAXBException#setLinkedException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MarshallerHelper.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
public X toObject(Node source) { try { StringWriter sw = new StringWriter(); try { Transformer t = TransformerFactory.newInstance().newTransformer(); t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); t.transform(new DOMSource(source), new StreamResult(sw)); } catch (TransformerException te) { System.out.println("nodeToString Transformer Exception"); } String content = sw.toString(); return (X) this.getUnMarshaller().unmarshal(source); } catch (JAXBException var5) { JAXBException e = var5; try { LOG.debug("Unable to unmarshall class from source.", e); return this.getUnMarshaller().unmarshal(source, this.unmarshallClass).getValue(); } catch (JAXBException var4) { var4.setLinkedException(var5); throw handleException(var4); } } }
Example 2
Source File: MarshallerHelper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public X toObject(Node source) { try { return this.getUnMarshaller().unmarshal(source); } catch (JAXBException var5) { JAXBException e = var5; try { LOG.debug("Unable to unmarshall class from source.", e); return this.getUnMarshaller().unmarshal(source, this.unmarshallClass).getValue(); } catch (JAXBException var4) { var4.setLinkedException(var5); throw handleException(var4); } } }
Example 3
Source File: MarshallerHelper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public X toObject(Node source) { try { return this.getUnMarshaller().unmarshal(source); } catch (JAXBException var5) { JAXBException e = var5; try { LOG.debug("Unable to unmarshall class from source.", e); return this.getUnMarshaller().unmarshal(source, this.unmarshallClass).getValue(); } catch (JAXBException var4) { var4.setLinkedException(var5); throw handleException(var4); } } }
Example 4
Source File: MarshallerHelper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public X toObject(Node source) { try { return this.getUnMarshaller().unmarshal(source); } catch (JAXBException var5) { JAXBException e = var5; try { LOG.debug("Unable to unmarshall class from source.", e); return this.getUnMarshaller().unmarshal(source, this.unmarshallClass).getValue(); } catch (JAXBException var4) { var4.setLinkedException(var5); throw handleException(var4); } } }
Example 5
Source File: MarshallerHelper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public X toObject(Node source) { try { return this.getUnMarshaller().unmarshal(source); } catch (JAXBException var5) { JAXBException e = var5; try { LOG.debug("Unable to unmarshall class from source.", e); return this.getUnMarshaller().unmarshal(source, this.unmarshallClass).getValue(); } catch (JAXBException var4) { var4.setLinkedException(var5); throw handleException(var4); } } }