@Test public void testWithStacktraceNoWorkflow() throws Exception { XmlReportWithStacktrace reporter = new XmlReportWithStacktrace(); Document d = reporter.create(new Exception("testWithStacktraceNoWorkflow"), null, "ThrowExceptionService"); assertNotNull(d); new XmlUtils().writeDocument(d, System.err); }
@Override public Document create(Exception e, String workflow, String location) throws Exception { AdaptrisMarshaller m = new XStreamMarshaller(); ExceptionReport report = createReportObject(e, workflow, location); return createDocument(m.marshal(report), (DocumentBuilderFactoryBuilder) null); }
XmlExceptionReport implements ExceptionReportGenerator { @Override public Document create(Exception e, String workflow, String location) throws Exception { AdaptrisMarshaller m = new XStreamMarshaller(); ExceptionReport report = createReportObject(e, workflow, location); return createDocument(m.marshal(report), (DocumentBuilderFactoryBuilder) null); } }
XmlExceptionReport implements ExceptionReportGenerator { @Override public Document create(Exception e, String workflow, String location) throws Exception { AdaptrisMarshaller m = new XStreamMarshaller(); ExceptionReport report = createReportObject(e, workflow, location); return createDocument(m.marshal(report), (DocumentBuilderFactoryBuilder) null); } XmlExceptionReport(); }
XmlExceptionReport implements ExceptionReportGenerator { @Override public Document create(Exception e, String workflow, String location) throws Exception { AdaptrisMarshaller m = new XStreamMarshaller(); ExceptionReport report = createReportObject(e, workflow, location); return createDocument(m.marshal(report), (DocumentBuilderFactoryBuilder) null); } XmlExceptionReport(); @Override Document create(Exception e, String workflow, String location); }
XmlExceptionReport implements ExceptionReportGenerator { @Override public Document create(Exception e, String workflow, String location) throws Exception { AdaptrisMarshaller m = new XStreamMarshaller(); ExceptionReport report = createReportObject(e, workflow, location); return createDocument(m.marshal(report), (DocumentBuilderFactoryBuilder) null); } XmlExceptionReport(); @Override Document create(Exception e, String workflow, String location);  }