class RpcException extends GrpcException

Methods

__construct(StatusCode $code, string $message = '')

No description

static RpcException
fromStatus(Status $status)

Create an exception from rich error details.

static RpcException
fromCall(Status $status, Metadata $metadata, Metadata $trailers, string $method, string $target)

Create an exception for a completed client call.

withTrailingMetadata(Metadata|array $metadata)

Append custom trailing metadata.

withRetryAfter(float $seconds)

Request a retry delay in seconds.

withoutRetry()

Prevent the client from retrying the failure.

status()

Return the gRPC status.

metadata()

Return the initial response metadata.

trailers()

Return the trailing response metadata.

string|null
method()

Return the service method path.

string|null
target()

Return the connection target.

int|null
retryPushbackMilliseconds()

Return the retry pushback in milliseconds.

Details

at line 27
__construct(StatusCode $code, string $message = '')

No description

Parameters

StatusCode $code
string $message

at line 43
static RpcException fromStatus(Status $status)

Create an exception from rich error details.

Parameters

Status $status

Return Value

RpcException

at line 62
static RpcException fromCall(Status $status, Metadata $metadata, Metadata $trailers, string $method, string $target)

internal  
 

Create an exception for a completed client call.

Parameters

Status $status
Metadata $metadata
Metadata $trailers
string $method
string $target

Return Value

RpcException

at line 88
RpcException withTrailingMetadata(Metadata|array $metadata)

Append custom trailing metadata.

Parameters

Metadata|array $metadata

Return Value

RpcException

at line 99
RpcException withRetryAfter(float $seconds)

Request a retry delay in seconds.

Parameters

float $seconds

Return Value

RpcException

at line 110
RpcException withoutRetry()

Prevent the client from retrying the failure.

Return Value

RpcException

at line 121
Status status()

Return the gRPC status.

Return Value

Status

at line 129
Metadata metadata()

Return the initial response metadata.

Return Value

Metadata

at line 137
Metadata trailers()

Return the trailing response metadata.

Return Value

Metadata

at line 145
string|null method()

Return the service method path.

Return Value

string|null

at line 153
string|null target()

Return the connection target.

Return Value

string|null

at line 163
int|null retryPushbackMilliseconds()

internal  
 

Return the retry pushback in milliseconds.

Return Value

int|null