Function WireStatus.failure

Construct a failed wire status.

static WireStatus failure(
  WireError error,
  ulong offset,
  uint fieldNumber = 0u
) pure nothrow @nogc @safe;

Parameters

NameDescription
error Error code; must describe the failure.
offset Byte offset at which the failure was detected.
fieldNumber Associated protobuf field number, or zero if unavailable.

Returns

A WireStatus containing the supplied failure information.