Zum Hauptinhalt springen

CkMethodErrorReader

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Tenants.Methods

Reads the CK method error contract of the asset repository (CkMethodGraphQlError: extensions.code, extensions.parameters, extensions.details) from the GraphQL errors of a response. The extension values arrive as the GraphQL client deserialized them (maps, lists, primitives or ); all forms are read.

public static class CkMethodErrorReader

Inheritance Object → CkMethodErrorReader

Methods​

Read(IReadOnlyList<GraphQLError>)​

Returns the method error of the first GraphQL error that carries extensions.code, or null.

public static CkMethodError Read(IReadOnlyList<GraphQLError> errors)

Parameters​

errors IReadOnlyList<GraphQLError>
The GraphQL errors of a response

Returns​

CkMethodError