Examples of ReportWriterException


Examples of com.buschmais.jqassistant.core.report.api.ReportWriterException

    public XmlReportWriter(Writer writer) throws ReportWriterException {
        XMLOutputFactory factory = XMLOutputFactory.newInstance();
        try {
            xmlStreamWriter = new IndentingXMLStreamWriter(factory.createXMLStreamWriter(writer));
        } catch (XMLStreamException e) {
            throw new ReportWriterException("Cannot create XML stream writer.", e);
        }
    }
View Full Code Here

Examples of com.buschmais.jqassistant.core.report.api.ReportWriterException

            if (executable instanceof Concept) {
                elementName = "concept";
            } else if (executable instanceof Constraint) {
                elementName = "constraint";
            } else {
                throw new ReportWriterException("Cannot write report for unsupported executable " + executable);
            }
            final List<String> columnNames = result.getColumnNames();
            run(new XmlOperation() {
                @Override
                public void run() throws XMLStreamException {
View Full Code Here

Examples of com.buschmais.jqassistant.core.report.api.ReportWriterException

    private void run(XmlOperation operation) throws ReportWriterException {
        try {
            operation.run();
        } catch (XMLStreamException e) {
            throw new ReportWriterException("Cannot write to XML report.", e);
        }
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

                xmlWriter.writeCloseTag();

              }
              catch (BeanException e)
              {
                throw new ReportWriterException("Unable to convert value at (row:" + row + ";column:" +
                    col + ") into a string." + value.getClass());
              }
            }

          }
          xmlWriter.writeCloseTag(); // row

        }

        xmlWriter.writeCloseTag(); // inline-table
      }
      xmlWriter.writeCloseTag();
    }
    catch (ReportDataFactoryException rfe)
    {
      // should never happen ..
      throw new ReportWriterException("Failed to write data-factory", rfe);
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

    {
      final DataFactory df = compoundDataFactory.get(i);
      final DataFactoryWriteHandler writerHandler = DataFactoryWriter.lookupWriteHandler(df);
      if (writerHandler == null)
      {
        throw new ReportWriterException("Unable to find writer-handler for data-factory " + df.getClass());
      }

      writerHandler.write(reportWriter, xmlWriter, dataFactory);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

    {
      writeBody(pmdDataFactory, xmlWriter);
    }
    catch (BundleWriterException e)
    {
      throw new ReportWriterException("Failed", e);
    }
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

      {
        writeKettleRepositoryProducer(xmlWriter, queryName, (KettleTransFromRepositoryProducer) prod);
      }
      else
      {
        throw new ReportWriterException("Failed to write Kettle-Producer: Unknown implementation.");
      }
    }
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

    {
      writeBody(pmdDataFactory, xmlWriter);
    }
    catch (BundleWriterException e)
    {
      throw new ReportWriterException("Failed", e);
    }
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

    {
      writeBody(pmdDataFactory, xmlWriter);
    }
    catch (BundleWriterException e)
    {
      throw new ReportWriterException("Failed", e);
    }
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException

                    final XmlWriter xmlWriter,
                    final DataSourceProvider dataFactory) throws IOException, ReportWriterException
  {
    if (dataFactory instanceof JndiDataSourceProvider == false)
    {
      throw new ReportWriterException("This is not a JNDI connection");
    }
    write(xmlWriter, (JndiDataSourceProvider) dataFactory);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.