In DefaultDatastoreRpc.translate(DatastoreException exception), we lose helpful error messages because we only throw a DatastoreRpcException based on the associated Reason. For example, in a malformed query request, the user gets an exception with the message "Invalid request". The original exception thrown and translated by the method mentioned above may include a message such as "must specify all group by orderings before any non group by orderings", which is far more helpful for the user.
In
DefaultDatastoreRpc.translate(DatastoreException exception), we lose helpful error messages because we only throw a DatastoreRpcException based on the associatedReason. For example, in a malformed query request, the user gets an exception with the message "Invalid request". The original exception thrown and translated by the method mentioned above may include a message such as "must specify all group by orderings before any non group by orderings", which is far more helpful for the user.