Skip to content

Commit

Permalink
Use getNumber instead of ordinal to get DatastoreException code (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard authored Aug 9, 2016
1 parent e1309f0 commit 8d76e73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private static DatastoreException translate(
}
}
return new DatastoreException(
exception.getCode().ordinal(), exception.getMessage(), reason, exception);
exception.getCode().getNumber(), exception.getMessage(), reason, exception);
}

@Override
Expand Down

0 comments on commit 8d76e73

Please sign in to comment.