Skip to content

Commit 39042ac

Browse files
committed
magento/graphql-ce#970 Cannot return several errors for one GraphQL request
1 parent a18b0e1 commit 39042ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function getCategory() : string
6262
}
6363

6464
/**
65+
* Add child error if used as aggregate exception
66+
*
6567
* @param LocalizedException $exception
6668
* @return $this
6769
*/
@@ -72,6 +74,8 @@ public function addError(LocalizedException $exception): self
7274
}
7375

7476
/**
77+
* Get child errors if used as aggregate exception
78+
*
7579
* @return LocalizedException[]
7680
*/
7781
public function getErrors(): array

0 commit comments

Comments
 (0)