Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Exception/ShopURLIsNotReachableException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

namespace Shopware\AppBundle\Exception;

class ShopURLIsNotReachableException extends \RuntimeException
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;

class ShopURLIsNotReachableException extends BadRequestHttpException
{
public function __construct(string $shopUrl, ?\Throwable $previous = null)
{
Expand All @@ -13,7 +15,6 @@ public function __construct(string $shopUrl, ?\Throwable $previous = null)
'Shop URL "%s" is not reachable from the application server.',
$shopUrl
),
0,
$previous
);
}
Expand Down
1 change: 1 addition & 0 deletions tests/Exception/ShopURLIsNotReachableExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ public function testExceptionMessage(): void
);

static::assertSame(0, $exception->getCode());
static::assertSame(400, $exception->getStatusCode());
}
}