Convenience function that creates a absl::Status using an error_number, which should be an errno value.

Synopsis

Declared in <absl/status/status.h>

Status
ErrnoToStatus(
    int error_number,
    std::string_view message,
    absl::SourceLocation loc = SourceLocation::current());

Return Value

A status derived from error_number.

Parameters

Name

Description

error_number

An errno value.

message

The error message.

loc

The source location of the callsite.

Created with MrDocs