Skip to content

Commit b66f7db

Browse files
committed
ACP2E-4031: [QUANS] Confirm GQL order placement exception handling behaviour reversion
1 parent b6bee18 commit b66f7db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/QuoteGraphQl/Model/OrderErrorProcessor.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Framework\Exception\LocalizedException;
1212
use Magento\Framework\GraphQl\Config\Element\Field;
1313
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
14+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
1415
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1516
use Magento\GraphQl\Helper\Error\AggregateExceptionMessageFormatter;
1617

@@ -27,17 +28,19 @@ public function __construct(
2728
}
2829

2930
/**
31+
* Process exception thrown by ordering process
32+
*
3033
* @param LocalizedException $exception
3134
* @param Field $field
32-
* @param $context
35+
* @param ContextInterface $context
3336
* @param ResolveInfo $info
3437
* @throws GraphQlAuthorizationException
3538
* @throws QuoteException
3639
*/
3740
public function execute(
3841
LocalizedException $exception,
3942
Field $field,
40-
$context,
43+
ContextInterface $context,
4144
ResolveInfo $info
4245
): void {
4346
if ($exception instanceof AuthorizationException) {

0 commit comments

Comments
 (0)