Skip to content

Commit

Permalink
throw exception InvalidArgumentException during validate scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtsiomBruneuski authored and gelanivishal committed Oct 12, 2018
1 parent 0f57a30 commit 3109909
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function validateResponseSchemaType($responseSchema, $topicName)
{
try {
$this->validateType($responseSchema);
} catch (\InvalidArgumentException $e) {
throw $e;
} catch (\Exception $e) {
throw new \LogicException(
sprintf(
Expand All @@ -67,6 +69,8 @@ public function validateRequestSchemaType($requestSchema, $topicName)
{
try {
$this->validateType($requestSchema);
} catch (\InvalidArgumentException $e) {
throw $e;
} catch (\Exception $e) {
throw new \LogicException(
sprintf(
Expand All @@ -90,6 +94,8 @@ public function validateResponseHandlersType($serviceName, $methodName, $handler
{
try {
$this->methodsMap->getMethodParams($serviceName, $methodName);
} catch (\InvalidArgumentException $e) {
throw $e;
} catch (\Exception $e) {
throw new \LogicException(
sprintf(
Expand Down

0 comments on commit 3109909

Please sign in to comment.