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

Name

Description

base_status

The status to copy.

loc

The source location to append to the location chain.

Created with MrDocs