Table of Contents

Class ApiError

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

A failure's ErrorInfo, read: its reason, and the field and resource it names.

public sealed record ApiError : IEquatable<ApiError>
Inheritance
ApiError
Implements
Inherited Members

Constructors

ApiError(StatusCode, string, string?, string?, ErrorInfo)

A failure's ErrorInfo, read: its reason, and the field and resource it names.

public ApiError(StatusCode Code, string Reason, string? Field, string? Resource, ErrorInfo Info)

Parameters

Code StatusCode

The gRPC status code.

Reason string

One of ErrorReasons.

Field string

The request field concerned, when there is one.

Resource string

The item concerned (an id, a key, a service), when there is one.

Info ErrorInfo

The whole ErrorInfo, metadata included.

Properties

Code

The gRPC status code.

public StatusCode Code { get; init; }

Property Value

StatusCode

Field

The request field concerned, when there is one.

public string? Field { get; init; }

Property Value

string

Info

The whole ErrorInfo, metadata included.

public ErrorInfo Info { get; init; }

Property Value

ErrorInfo

Reason

One of ErrorReasons.

public string Reason { get; init; }

Property Value

string

Resource

The item concerned (an id, a key, a service), when there is one.

public string? Resource { get; init; }

Property Value

string