Skip to content

Commit

Permalink
Fixed googleapis#478 - Make DatastoreException informative.
Browse files Browse the repository at this point in the history
Makes DatastoreException message more informative by preserving a cause.
Fixes googleapis#478
  • Loading branch information
mderka committed Jan 11, 2016
1 parent 0551413 commit 04d8eef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testDatastoreError() throws Exception {

@Test
public void testTranslateAndThrow() throws Exception {
DatastoreRpcException toTranslate = null; // this should be preserved as a cause
DatastoreRpcException toTranslate = null; // should be preserved as a cause
for (Reason reason : Reason.values()) {
try {
toTranslate = new DatastoreRpcException(reason, null);
Expand Down

0 comments on commit 04d8eef

Please sign in to comment.