[Mulgara-svn] r1438 - trunk/src/jar/web/java/org/mulgara/webquery
ronald at mulgara.org
ronald at mulgara.org
Mon Jan 19 11:27:59 UTC 2009
Author: ronald
Date: 2009-01-19 03:27:58 -0800 (Mon, 19 Jan 2009)
New Revision: 1438
Modified:
trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java
Log:
Chain the underlying exceptions when creating new ones.
Modified: trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java
===================================================================
--- trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java 2009-01-19 11:27:54 UTC (rev 1437)
+++ trunk/src/jar/web/java/org/mulgara/webquery/QueryResponsePage.java 2009-01-19 11:27:58 UTC (rev 1438)
@@ -284,7 +284,8 @@
// got to the end of this result, so clean it up
resultFinished(result);
} catch (TuplesException e) {
- throw new IOException("Error accessing the results of the query: " + e.getMessage());
+ throw (IOException)
+ new IOException("Error accessing the results of the query: " + e.getMessage()).initCause(e);
}
return resultTable;
}
@@ -338,7 +339,7 @@
}
return new Anchor(new URI(EXECUTE_LINK + "?" + params), text);
} catch (URISyntaxException e) {
- throw new IOException("Bad data returned from server");
+ throw (IOException) new IOException("Bad data returned from server").initCause(e);
}
}
@@ -374,7 +375,8 @@
a.addAttr(Attr.TITLE, "Forward to next page of results");
return new TableRow(new TableData(a).addAttr(Attr.COLSPAN, width));
} catch (URISyntaxException e) {
- throw new IOException("Unabled to emit a relative URL: " + e.getMessage());
+ throw (IOException)
+ new IOException("Unabled to emit a relative URL: " + e.getMessage()).initCause(e);
}
}
More information about the Mulgara-svn
mailing list