Class PermanentMutationFailure (2.22.0)

Report unrecoverable errors in a partially completed mutation.

Constructors

PermanentMutationFailure(char const *, std::vector< FailedMutation >)

Parameters
NameDescription
msg char const *
failures std::vector< FailedMutation >

PermanentMutationFailure(char const *, grpc::Status, std::vector< FailedMutation >)

Parameters
NameDescription
msg char const *
status grpc::Status
failures std::vector< FailedMutation >

Functions

failures() const

The details of each mutation failure.

Because BulkApply() and Apply() take ownership of the data in the mutations the failures are returned with their full contents, in case the application wants to take further action with them. Any successful mutations are discarded.

Any mutations that fail with an unknown state are included with a grpc::StatusCode::OK.

Returns
TypeDescription
std::vector< FailedMutation > const &

status() const

The grpc::Status of the request.

Notice that it can return grpc::Status::OK when there are partial failures in a BulkApply() operation.

Returns
TypeDescription
grpc::Status const &