class StatusRep

Defined at line 85 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

Reference-counted representation of Status data.

Public Methods

std::optional<absl::Cord> GetPayload (absl::string_view type_url)

Payload methods correspond to the same methods in absl::Status.

void ForEachPayload (absl::FunctionRef<void (absl::string_view, const absl::Cord &)> visitor)
absl::Span<const SourceLocation> GetSourceLocations ()
void AddSourceLocation (absl::SourceLocation loc)
void StatusRep (absl::StatusCode code_arg, absl::string_view message_arg, std::unique_ptr<status_internal::Payloads> payloads_arg)

Defined at line 87 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

template <typename String, typename = std::enable_if_t<std::is_same_v<String, std::string>>>
void StatusRep (absl::StatusCode code_arg, String && message_arg, std::unique_ptr<status_internal::Payloads> payloads_arg)

Defined at line 96 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

std::string ToString (StatusToStringMode mode)
StatusRep * _Nonnull Clone (absl::optional_ref<absl::string_view> new_message, bool include_payloads, bool include_source_locations)

Returns an equivalent heap allocated StatusRep with refcount 1.

If `new_message` is provided, the message will be replaced with the new

message.

StatusRep * _Nonnull CloneAndUnref (absl::optional_ref<absl::string_view> new_message, bool include_payloads, bool include_source_locations)

Same as Clone(), but also removes a reference to `this`. `this` is not safe

to be used after calling as it may have been deleted.

StatusRep * _Nonnull CloneAndUnref ()
absl::StatusCode code ()

Defined at line 103 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

const std::string & message ()

Defined at line 104 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

void Ref ()

Ref and unref are const to allow access through a const pointer, and are

used during copying operations.

Defined at line 108 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

void Unref ()
void SetPayload (absl::string_view type_url, absl::Cord payload)
EraseResult ErasePayload (absl::string_view type_url)
bool operator!= (const StatusRep & other)

Defined at line 129 of file ../../third_party/abseil-cpp/src/absl/status/internal/status_internal.h

bool operator== (const StatusRep & other)

Records