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
Error
The error code and parameters the service answered.
public CkMethodError Error { get; }
Property Value
Code
Shortcut for CkMethodError.Code of CkMethodCallException.Error.
public string Code { get; }
Property Value
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
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
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