A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/cpp/docs/reference/common/2.10.1/classgoogle_1_1cloud_1_1Status.html below:

Class google::cloud::Status (2.10.1) | C++ Client Libraries

Skip to main content Class google::cloud::Status (2.10.1)

Stay organized with collections Save and categorize content based on your preferences.

Represents success or an error with info about the error.

This class is typically used to indicate whether or not a function or other operation completed successfully. Success is indicated by an "OK" status. OK statuses will have .code()==StatusCode::kOk and .ok()== true, with all other properties having empty values. All OK statuses are equal. Any non-OK Status is considered an error. Users can inspect the error using the member functions, or they can simply stream the Status object, and it will print itself in some human readable way (the streamed format may change over time and you should not depend on the specific format of a streamed Status object remaining unchanged).

This is a regular value type that can be copied, moved, compared for equality, and streamed.

Constructors Status Parameter Name Description Status const &
Status Parameter Name Description Status &&
Status

Default constructor, initializes to StatusCode::kOk.

~Status

Destructor.

Status

Construct from a status code, message and (optional) error info.

Parameters Name Description code StatusCode

the status code for the new Status.

message std::string

the message for the new Status, ignored if code is StatusCode::kOk.

info ErrorInfo

the ErrorInfo for the new Status, ignored if code is SStatusCode::kOk.

Operators operator= Parameter Name Description Status const &
Returns Type Description Status & operator= Parameter Name Description Status &&
Returns Type Description Status & Functions ok

Returns true if the status code is StatusCode::kOk.

Returns Type Description bool code

Returns the status code.

Returns Type Description StatusCode message

Returns the message associated with the status.

This is always empty if code() is StatusCode::kOk.

Returns Type Description std::string const & error_info

Returns the additional error info associated with the status.

This is always a default-constructed error info if code() is StatusCode::kOk.

Returns Type Description ErrorInfo const &

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-14 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["The provided content is a reference document for the `Status` class in the Google Cloud C++ library, with version 2.10.1 being one of the available versions."],["The `Status` class indicates the success or failure of an operation, with `StatusCode::kOk` representing success and non-`StatusCode::kOk` values representing errors."],["The class provides methods such as `ok()`, `code()`, `message()`, and `error_info()` to inspect the status and retrieve details about any encountered errors."],["`Status` objects can be copied, moved, compared, and streamed, and the document provides a list of links to different versions of the Status Class, including the latest, 2.37.0-rc."],["The `Status` class has constructors, a destructor, operators, and functions, that allow users to create, initialize and manage `Status` objects, whether they are successful or not."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4