Log in
Model

CancelOrderError

Magento\OrderCancellationGraphQl\Model\Resolver\CancelOrderError

What it does

This GraphQL resolver transforms order cancellation error messages into a structured format with both a human-readable message and a machine-readable error code.

Developers use this class when building GraphQL APIs for order cancellation to provide consistent error responses that client applications can handle programmatically.

Public Methods

  • resolve()