Class GatewayInvokeException
A backend failure the gateway reported in-band on Gateway.Invoke: the gRPC
call itself succeeded, the response carried success = false with the
backend's status code name, message and status details.
public sealed class GatewayInvokeException : Exception, ISerializable
- Inheritance
-
GatewayInvokeException
- Implements
- Inherited Members
Constructors
GatewayInvokeException(string, string, string, string)
A failure without status details.
public GatewayInvokeException(string service, string method, string status, string message)
Parameters
GatewayInvokeException(string, string, string, string, ApiError?)
A backend failure the gateway reported in-band on Gateway.Invoke: the gRPC
call itself succeeded, the response carried success = false with the
backend's status code name, message and status details.
public GatewayInvokeException(string service, string method, string status, string message, ApiError? error)
Parameters
Properties
Detail
The backend's message.
public string Detail { get; }
Property Value
Error
The failure's google.rpc.ErrorInfo (InvokeResponse.status_details): its
reason, field and resource. Null when the backend attached none.
public ApiError? Error { get; }
Property Value
IsTransient
Whether the failure is worth retrying as is: the backend timed out or was unavailable (including a tripped gateway circuit breaker).
public bool IsTransient { get; }
Property Value
Method
The backend method the call was for.
public string Method { get; }
Property Value
Service
The backend service the call was for.
public string Service { get; }
Property Value
Status
The gRPC status code name the gateway reported (e.g. NOT_FOUND, DEADLINE_EXCEEDED).
public string Status { get; }