Skip to content

Commit 3109909

Browse files
ArtsiomBruneuskigelanivishal
authored andcommitted
throw exception InvalidArgumentException during validate scheme
1 parent 0f57a30 commit 3109909

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/internal/Magento/Framework/Communication/Config/Validator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function validateResponseSchemaType($responseSchema, $topicName)
4646
{
4747
try {
4848
$this->validateType($responseSchema);
49+
} catch (\InvalidArgumentException $e) {
50+
throw $e;
4951
} catch (\Exception $e) {
5052
throw new \LogicException(
5153
sprintf(
@@ -67,6 +69,8 @@ public function validateRequestSchemaType($requestSchema, $topicName)
6769
{
6870
try {
6971
$this->validateType($requestSchema);
72+
} catch (\InvalidArgumentException $e) {
73+
throw $e;
7074
} catch (\Exception $e) {
7175
throw new \LogicException(
7276
sprintf(
@@ -90,6 +94,8 @@ public function validateResponseHandlersType($serviceName, $methodName, $handler
9094
{
9195
try {
9296
$this->methodsMap->getMethodParams($serviceName, $methodName);
97+
} catch (\InvalidArgumentException $e) {
98+
throw $e;
9399
} catch (\Exception $e) {
94100
throw new \LogicException(
95101
sprintf(

0 commit comments

Comments
 (0)