###Member Details
Create a success status.
tensorflow::Status::Status(tensorflow::error::Code code, tensorflow::StringPiece msg)
{#tensorflow_Status_Status}
Create a status with the specified error code and msg as a human-readable string containing more detailed information.
Copy the specified status.
Returns true iff the status indicates success.
tensorflow::error::Code tensorflow::Status::code() const
{#tensorflow_error_Code_tensorflow_Status_code}
const string& tensorflow::Status::error_message() const
{#const_string_tensorflow_Status_error_message}
If ok()
, stores new_status
into *this
. If !ok()
, preserves the current status, but may augment with additional information about new_status
.
Convenient way of keeping track of the first error encountered. Instead of: if (overall_status.ok()) overall_status = new_status
Use: overall_status.Update(new_status);
Return a string representation of this status suitable for printing. Returns the string "OK"
for success.