absl::FailedPreconditionError

Creates a status with the kFailedPrecondition error code and message.

Synopsis

Declared in <absl/status/status.h>

Status
FailedPreconditionError(
    std::string_view message,
    absl::SourceLocation loc = SourceLocation::current());

Return Value

A status with the kFailedPrecondition error code.

Parameters

NameDescription
messageThe error message.
locThe source location of the callsite.