Table of Contents

Class GatewayInvokeException

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

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

service string
method string
status string
message string

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

service string
method string
status string
message string
error ApiError

Properties

Detail

The backend's message.

public string Detail { get; }

Property Value

string

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

ApiError

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

bool

Method

The backend method the call was for.

public string Method { get; }

Property Value

string

Service

The backend service the call was for.

public string Service { get; }

Property Value

string

Status

The gRPC status code name the gateway reported (e.g. NOT_FOUND, DEADLINE_EXCEEDED).

public string Status { get; }

Property Value

string