The MarshalException is a subclass of the {@link javax.xml.bind.JAXBException} being thrown if themarshalling of a JAXB object failed.
MarshalException
389390391392393394395396
object = modifyObjectIfNeeded(object); try { xmlMarshaller.marshal(object, outputStream); } catch (Exception e) { throw new MarshalException(e); } }
402403404405406407408409
marshal(object, outputStream); } finally { outputStream.close(); } } catch (Exception ex) { throw new MarshalException(ex); } }
415416417418419420421422
object = modifyObjectIfNeeded(object); try { xmlMarshaller.marshal(object, result); } catch (Exception e) { throw new MarshalException(e); } }
458459460461462463464465
try { XMLStreamWriterRecord record = new XMLStreamWriterRecord(streamWriter); record.setMarshaller(this.xmlMarshaller); this.xmlMarshaller.marshal(object, record); } catch (Exception ex) { throw new MarshalException(ex); } }
592593594595596597598599
object = modifyObjectIfNeeded(object); try { xmlMarshaller.marshal(object, writer); } catch (Exception e) { throw new MarshalException(e); } }
606607608609610611612613
try { record.setMarshaller(xmlMarshaller); xmlMarshaller.marshal(object, record); } catch (Exception e) { throw new MarshalException(e); } }
284285286287288289290291
object = wrapEnumeration(object, object.getClass()); } try { xmlMarshaller.marshal(object, contentHandler); } catch (Exception e) { throw new MarshalException(e); } }
315316317318319320321322
try { XMLEventWriterRecord record = new XMLEventWriterRecord(eventWriter); record.setMarshaller(this.xmlMarshaller); this.xmlMarshaller.marshal(object, record); } catch (Exception ex) { throw new MarshalException(ex); } }
359360361362363364365366
object = wrapEnumeration(object, object.getClass()); } try { xmlMarshaller.marshal(object, node); } catch (Exception e) { throw new MarshalException(e); } }
377378379380381382383384
object = wrapEnumeration(object, object.getClass()); } try { xmlMarshaller.marshal(object, outputStream); } catch (Exception e) { throw new MarshalException(e); } }