Commit 4258b891 authored by R.W.Majeed's avatar R.W.Majeed

more verbose error message for missing xpath attribute in eav table

parent a448df59
package de.sekmi.histream.export;
import java.io.IOException;
import java.util.Objects;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
......@@ -18,6 +19,7 @@ public class EavTableParser extends TableParser {
public EavTableParser(EavTable table, TableWriter writer, XPath xpath) throws ExportException, IOException {
super(table, writer, xpath);
Objects.requireNonNull(table.getXPath(), "xpath expression required for eav-table[id='"+table.getId()+"']/@xpath");
try {
factSelector = xpath.compile(table.getXPath());
} catch (XPathExpressionException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment