From e73b37b4d381d882ccca982f0220b365784301c3 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Sat, 2 Nov 2024 16:01:25 +0100 Subject: [PATCH] catch fitting exception --- src/Service/Test/Runner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/Test/Runner.php b/src/Service/Test/Runner.php index 060164df3..90d5f2eac 100644 --- a/src/Service/Test/Runner.php +++ b/src/Service/Test/Runner.php @@ -32,7 +32,7 @@ use PSX\Http\ResponseInterface; use PSX\Http\Stream\Stream; use PSX\OAuth2\AccessToken; -use PSX\Schema\Exception\ValidationException; +use PSX\Schema\Exception\TraverserException; use PSX\Schema\SchemaManagerInterface; use PSX\Schema\SchemaTraverser; use PSX\Uri\Uri; @@ -138,7 +138,7 @@ public function run(Table\Generated\TestRow $test, Table\Generated\OperationRow (new SchemaTraverser(ignoreUnknown: false))->traverse($data, $schema); $this->set($test, Table\Test::STATUS_SUCCESS, '', $body); - } catch (ValidationException $e) { + } catch (TraverserException $e) { $this->set($test, Table\Test::STATUS_ERROR, $e->getMessage(), $body); } catch (\Throwable $e) { $this->set($test, Table\Test::STATUS_ERROR, $this->getErrorMessage($e), $body);