Creates a status with the kDataLoss error code and message.

Synopses

Declared in <absl/status/status.h>

Creates a status with the kDataLoss error code and message.

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

Creates a status with the kDataLoss error code and message.

template<
    typename String,
    typename = /* implementation-defined */::EnableIfString<String>>
Status
DataLossError(
    String&& message,
    absl::SourceLocation loc = SourceLocation::current());

Return Value

A status with the kDataLoss error code.

Parameters

Name

Description

message

The error message.

loc

The source location of the callsite.

Created with MrDocs