Make all parser exceptions extend from ParserException

parent 50ff5f92
......@@ -17,10 +17,10 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperRuntimeException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
use PhpParser\Node;
final class CircularReferenceDetectedException extends AppMapperRuntimeException
final class CircularReferenceDetectedException extends ParserException
{
public function __construct(Node $node, string $fqcn)
{
......
......@@ -17,8 +17,8 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperLogicException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
final class EmptyCollectionException extends AppMapperLogicException
final class EmptyCollectionException extends ParserException
{
}
......@@ -17,10 +17,10 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperLogicException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
use Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\AbstractCollection;
final class NonUniqueTypeCollectionException extends AppMapperLogicException
final class NonUniqueTypeCollectionException extends ParserException
{
public function __construct(AbstractCollection $collection)
{
......
......@@ -17,11 +17,11 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperLogicException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
use Hgraca\PhpExtension\Type\TypeHelper;
use PhpParser\Node;
final class NotImplementedException extends AppMapperLogicException
final class NotImplementedException extends ParserException
{
public static function constructFromNode(Node $node)
{
......
......@@ -17,8 +17,8 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperRuntimeException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
final class UnknownFqcnException extends AppMapperRuntimeException
final class UnknownFqcnException extends ParserException
{
}
......@@ -17,9 +17,9 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\PhpExtension\Exception\RuntimeException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
final class UnknownVariableException extends RuntimeException
final class UnknownVariableException extends ParserException
{
public function __construct(string $variableName)
{
......
......@@ -17,10 +17,10 @@ declare(strict_types=1);
namespace Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Exception;
use Hgraca\AppMapper\Core\SharedKernel\Exception\AppMapperRuntimeException;
use Hgraca\AppMapper\Core\Port\Parser\Exception\ParserException;
use PhpParser\Node;
final class UnresolvableNodeTypeException extends AppMapperRuntimeException
final class UnresolvableNodeTypeException extends ParserException
{
public function __construct(Node $node)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment