Skip to content

Commit

Permalink
Add throwable cause to DatastoreException
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Jan 20, 2016
1 parent 67e5dfc commit 34e6806
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public BaseServiceException(int code, String message, String reason, boolean ide
}

public BaseServiceException(int code, String message, String reason, boolean idempotent,
Exception cause) {
Throwable cause) {
super(message, cause);
this.code = code;
this.reason = reason;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class DatastoreException extends BaseServiceException {
new Error(503, "UNAVAILABLE"));
private static final long serialVersionUID = 2663750991205874435L;

public DatastoreException(int code, String message, String reason, Exception cause) {
public DatastoreException(int code, String message, String reason, Throwable cause) {
super(code, message, reason, true, cause);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static DatastoreException translate(
return new DatastoreException((IOException) exception.getCause());
}
}
return new DatastoreException(code, message, reason);
return new DatastoreException(code, message, reason, exception);
}

@Override
Expand Down

0 comments on commit 34e6806

Please sign in to comment.