From 39042ac2e2afa306730134d35bde9a4c33e12340 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Thu, 17 Oct 2019 11:00:51 -0500 Subject: [PATCH] magento/graphql-ce#970 Cannot return several errors for one GraphQL request --- .../Framework/GraphQl/Exception/GraphQlInputException.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php index 11aad3d6f7f9..28b91c753c7e 100644 --- a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php +++ b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php @@ -62,6 +62,8 @@ public function getCategory() : string } /** + * Add child error if used as aggregate exception + * * @param LocalizedException $exception * @return $this */ @@ -72,6 +74,8 @@ public function addError(LocalizedException $exception): self } /** + * Get child errors if used as aggregate exception + * * @return LocalizedException[] */ public function getErrors(): array