Skip to content
Snippets Groups Projects
Commit a01592ac authored by Stanley Feng's avatar Stanley Feng
Browse files

[googledatastore] Add cause to DBException

Addressing the last CR comment.

[googledatastore] Add cause to DBException
parent 98b845fd
No related branches found
No related tags found
No related merge requests found
......@@ -171,13 +171,11 @@ public class GoogleDatastoreClient extends DB {
} catch (GeneralSecurityException exception) {
throw new DBException("Security error connecting to the datastore: " +
"cause: " + exception.getCause() +
" details: " + exception.getMessage());
exception.getMessage(), exception);
} catch (IOException exception) {
throw new DBException("I/O error connecting to the datastore: " +
"cause: " + exception.getCause() +
" details: " + exception.getMessage());
exception.getMessage(), exception);
}
logger.info("Datastore client instance created: " +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment