Skip to main content

CkMethodCallException

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

A CK method call failed with an error the method does not declare: a platform error such as METHOD_FORBIDDEN, METHOD_VALIDATION_FAILED, METHOD_TARGET_NOT_FOUND, METHOD_TIMEOUT or METHOD_HANDLER_FAILED. It is a QlQueryErrorException, so code that catches GraphQL errors today keeps working; CkMethodCallException.Error carries the code and parameters.

public class CkMethodCallException : QlQueryErrorException, ISerializable

Inheritance Object → Exception → QlQueryErrorException → CkMethodCallException
Implements ISerializable

Properties​

MethodId​

The qualified id of the called method, e.g. System.Identity/User.ResetPassword-1.

public string MethodId { get; }

Property Value​

String

Error​

The error code and parameters the service answered.

public CkMethodError Error { get; }

Property Value​

CkMethodError

Code​

Shortcut for CkMethodError.Code of CkMethodCallException.Error.

public string Code { get; }

Property Value​

String

Errors​

The GraphQL errors of the response (with their extensions); null when the exception was not created from a GraphQL response.

public IReadOnlyList<GraphQLError> Errors { get; }

Property Value​

IReadOnlyList<GraphQLError>

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

CkMethodCallException(String, CkMethodError, IReadOnlyList<GraphQLError>, Exception)​

Creates the exception.

public CkMethodCallException(string methodId, CkMethodError error, IReadOnlyList<GraphQLError> errors, Exception inner)

Parameters​

methodId String
The qualified id of the called method

error CkMethodError
The error the service answered

errors IReadOnlyList<GraphQLError>
All GraphQL errors of the response

inner Exception
The exception the GraphQL client threw