Go to the documentation of this file.
14 #include "absl/status/statusor.h"
19 #include "absl/base/internal/raw_logging.h"
20 #include "absl/status/status.h"
21 #include "absl/strings/str_cat.h"
31 return "Bad StatusOr access";
36 namespace internal_statusor {
39 const char* kMessage =
40 "An OK status is not a valid constructor argument to StatusOr<T>";
53 absl::StrCat(
"Attempting to fetch value instead of handling error ",
58 #ifdef ABSL_HAVE_EXCEPTIONS
63 absl::StrCat(
"Attempting to fetch value instead of handling error ",
std::string ToString(StatusToStringMode mode=StatusToStringMode::kDefault) const
std::string StrCat(const AlphaNum &a, const AlphaNum &b)
const absl::Status & status() const
Status InternalError(absl::string_view message)
#define ABSL_NAMESPACE_END
#define ABSL_NAMESPACE_BEGIN
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
static ABSL_ATTRIBUTE_NORETURN void Crash(const absl::Status &status)
BadStatusOrAccess(absl::Status status)
static const LogLevel ERROR
ABSL_ATTRIBUTE_NORETURN void ThrowBadStatusOrAccess(absl::Status status)
static void HandleInvalidStatusCtorArg(Status *)
~BadStatusOrAccess() override=default
#define ABSL_INTERNAL_LOG(severity, message)
const char * what() const noexcept override
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:18