Permalink
Browse files

Persuant to issue #184 add more detail to the rest of the dynamic err…

…or 6 cases
  • Loading branch information...
ndw committed Feb 5, 2015
1 parent 294f6e2 commit 5a34a5440725a39acad0733d2139ea570646a302
@@ -196,7 +196,7 @@ public void run() throws SaxonApiException {
XdmNode srcDoc = source.read();
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
OutputStream os = process.getOutputStream();
@@ -116,7 +116,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -402,7 +402,7 @@ public void run() throws SaxonApiException {
InputStream bodyStream = httpResult.getEntity().getContent();
readBodyContent(tree, bodyStream, httpResult);
} else {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading HTTP response on " + getStep().getName());
}
}
}
@@ -81,7 +81,7 @@ public void run() throws SaxonApiException {
matcher.match(doc, getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -105,7 +105,7 @@ public void run() throws SaxonApiException {
}
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
}
@@ -91,7 +91,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -73,7 +73,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -88,7 +88,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -95,7 +95,7 @@ public void run() throws SaxonApiException {
XdmNode doc = source.read();
if (doc == null || source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
String href = null, base = null;
@@ -82,7 +82,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -96,7 +96,7 @@ public void run() throws SaxonApiException {
matcher.match(source.read(), getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -116,7 +116,7 @@ public void run() throws SaxonApiException {
matcher.match(doc,getOption(_match));
if (source.moreDocuments()) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Reading source on " + getStep().getName());
}
result.write(matcher.getResult());
@@ -140,7 +140,7 @@ public void run() throws SaxonApiException {
}
if (docsCopied != 1 && !seqOk) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Writing to " + wport + " on " + getStep().getName());
}
}
}
@@ -140,7 +140,7 @@ public void run() throws SaxonApiException {
}
if (docsCopied != 1) {
throw XProcException.dynamicError(6);
throw XProcException.dynamicError(6, "Writing to " + iPortName + " on " + getStep().getName());
}
for (XStep step : subpipeline) {

0 comments on commit 5a34a54

Please sign in to comment.