absl::CancelledError

CancelledError overloads

Synopses

Declared in <absl/status/status.h>

Creates a Status object with the absl::StatusCode::kCancelled error code and an empty message.

Status
CancelledError();
» more...

Creates a status with the kCancelled error code and message.

Status
CancelledError(
    std::string_view message,
    absl::SourceLocation loc = SourceLocation::current());
» more...

Creates a status with the kCancelled error code and message.

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

Return Value

  • A kCancelled status with an empty message.
  • A status with the kCancelled error code.

Parameters

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