Zum Hauptinhalt springen

CkMethodError

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

A failed CK method call as the asset repository reports it: one GraphQL error whose extensions carry the machine-readable contract (code, parameters, optional details). For a declared error, CkMethodError.Code is the code the method declares in its CK model (e.g. PASSWORD_POLICY_VIOLATION).

public sealed class CkMethodError

Inheritance Object → CkMethodError

Properties​

Code​

The error code (extensions.code).

public string Code { get; }

Property Value​

String

Message​

The message of the GraphQL error. It is a fixed text; use CkMethodError.Code and CkMethodError.Parameters.

public string Message { get; }

Property Value​

String

Parameters​

The language-neutral error parameters (extensions.parameters); empty when there are none.

public IReadOnlyDictionary<string, string> Parameters { get; }

Property Value​

IReadOnlyDictionary<String, String>

Details​

The per-item details (extensions.details); empty when there are none.

public IReadOnlyList<CkMethodErrorDetail> Details { get; }

Property Value​

IReadOnlyList<CkMethodErrorDetail>

Constructors​

CkMethodError(String, String, IReadOnlyDictionary<String, String>, IReadOnlyList<CkMethodErrorDetail>)​

Creates the error.

public CkMethodError(string code, string message, IReadOnlyDictionary<string, string> parameters, IReadOnlyList<CkMethodErrorDetail> details)

Parameters​

code String
The error code

message String
The (language-neutral) message of the GraphQL error

parameters IReadOnlyDictionary<String, String>
The error parameters

details IReadOnlyList<CkMethodErrorDetail>
The per-item details

Methods​

ToString()​

public string ToString()

Returns​

String