Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigtable::PermanentMutationFailure Class Reference

Report unrecoverable errors in a partially completed mutation. More...

#include <google/cloud/bigtable/mutations.h>

Public Member Functions

 PermanentMutationFailure (char const *msg, std::vector< FailedMutation > failures)
 
 PermanentMutationFailure (char const *msg, grpc::Status status, std::vector< FailedMutation > failures)
 
std::vector< FailedMutation > const & failures () const
 The details of each mutation failure. More...
 
grpc::Status const & status () const
 The grpc::Status of the request. More...
 

Detailed Description

Report unrecoverable errors in a partially completed mutation.

Constructor & Destructor Documentation

◆ PermanentMutationFailure() [1/2]

google::cloud::bigtable::PermanentMutationFailure::PermanentMutationFailure ( char const *  msg,
std::vector< FailedMutation failures 
)
inline

◆ PermanentMutationFailure() [2/2]

google::cloud::bigtable::PermanentMutationFailure::PermanentMutationFailure ( char const *  msg,
grpc::Status  status,
std::vector< FailedMutation failures 
)
inline

Member Function Documentation

◆ failures()

std::vector< FailedMutation > const & google::cloud::bigtable::PermanentMutationFailure::failures ( ) const
inline

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.

◆ status()

grpc::Status const & google::cloud::bigtable::PermanentMutationFailure::status ( ) const
inline

The grpc::Status of the request.

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