absl::Status::Status

Creates a status from a base_status and a loc.

Synopsis

Declared in <absl/status/status.h>

Status(
    Status const& base_status,
    absl::SourceLocation loc);

Description

The loc will be appended to the location chain of the new status, iff the base_status is not ok and has non-empty msg.

Parameters

NameDescription
base_statusThe status to copy.
locThe source location to append to the location chain.