setFailed

abstract fun setFailed(description: String, cancelPolicy: DirectiveHandlerResult.CancelPolicy = POLICY_CANCEL_ALL)

Should be called when directive handling failed by DirectiveHandler.

Parameters

description

the description for failure.

cancelPolicy

the policy for cancellation