first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace KupShop\GraphQLBundle\Exception;
class CartPreconditionFailedException extends \Exception
{
}

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace KupShop\GraphQLBundle\Exception;
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;
class GraphQLDuplicatedException extends GraphQLException
{
public function __construct(
string $message,
?\Throwable $previous = null,
array $extensions = [],
) {
parent::__construct($message, 409, $previous, 'DUPLICATED', $extensions);
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace KupShop\GraphQLBundle\Exception;
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;
class GraphQLNotFoundException extends GraphQLException
{
public function __construct(
string $message,
?\Throwable $previous = null,
array $extensions = [],
) {
parent::__construct($message, 404, $previous, 'NOT_FOUND', $extensions);
}
}

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace KupShop\GraphQLBundle\Exception;
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;
class GraphQLValidationException extends GraphQLException
{
public function __construct(
string $message,
?\Throwable $previous = null,
array $extensions = [],
) {
parent::__construct($message, 400, $previous, 'VALIDATION', $extensions);
}
}