google.appengine.datastore.datastore_stub_util.Check

Raises an apiproxy_errors.ApplicationError if the condition is false.

test A condition to test.
msg A string to return with the error.
error_code One of datastore_pb.Error to use as an error code.

apiproxy_errors.ApplicationError If test is false.