An enumerated type indicating how absl::Status::ToString() should construct the output string for a non‐ok status.

Synopsis

Declared in <absl/status/status.h>

enum class StatusToStringMode : int;

Members

Name

Description

kWithNoExtraData

ToString will not contain any extra data (such as payloads). It will only contain the error code and message, if any.

kWithPayload

ToString will contain the payloads.

kWithSourceLocation

ToString will contain the source locations.

kWithEverything

ToString will include all the extra data this Status has.

kDefault

Default mode used by ToString. Its exact value might change in the future.

Non-Member Functions

Name

Description

operator&

Computes the bitwise AND of two StatusToStringMode values.

operator&=

Assigns to lhs the bitwise AND of lhs and rhs.

operatorˆ

Computes the bitwise XOR of two StatusToStringMode values.

operatorˆ=

Assigns to lhs the bitwise XOR of lhs and rhs.

operator|

Computes the bitwise OR of two StatusToStringMode values.

operator|=

Assigns to lhs the bitwise OR of lhs and rhs.

operator~

Computes the bitwise complement of a StatusToStringMode value.

Created with MrDocs