RpcException
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
withRetryAfter(float $seconds)
Request a retry delay in seconds.
withoutRetry()
Prevent the client from retrying the failure.
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
at line 43
static RpcException
fromStatus(Status $status)
Create an exception from rich error details.
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.
at line 88
RpcException
withTrailingMetadata(Metadata|array $metadata)
Append custom trailing metadata.
at line 99
RpcException
withRetryAfter(float $seconds)
Request a retry delay in seconds.
at line 110
RpcException
withoutRetry()
Prevent the client from retrying the failure.
at line 121
Status
status()
Return the gRPC status.
at line 129
Metadata
metadata()
Return the initial response metadata.
at line 137
Metadata
trailers()
Return the trailing response metadata.
at line 145
string|null
method()
Return the service method path.
at line 153
string|null
target()
Return the connection target.
at line 163
int|null
retryPushbackMilliseconds()
| internal |
Return the retry pushback in milliseconds.