From a0f78a1c540ad402d546ae6628b0158309553bc5 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:50:28 +0100 Subject: [PATCH] TASK: Base exception on `\RuntimeException` instead of `\DomainException` for ESCR core --- .../Classes/Dimension/Exception/ContentDimensionIdIsInvalid.php | 2 +- .../Dimension/Exception/ContentDimensionValueIsInvalid.php | 2 +- .../ContentDimensionValueSpecializationDepthIsInvalid.php | 2 +- .../Dimension/Exception/ContentDimensionValuesAreInvalid.php | 2 +- .../Classes/Dimension/Exception/GeneralizationIsInvalid.php | 2 +- .../ContentSubgraphVariationWeightsAreIncomparable.php | 2 +- .../Exception/DimensionSpacePointIsNoSpecialization.php | 2 +- .../DimensionSpace/Exception/DimensionSpacePointNotFound.php | 2 +- .../Exception/DimensionSpacePointAlreadyExists.php | 2 +- .../NodeDisabling/Exception/NodeAggregateIsAlreadyDisabled.php | 2 +- .../NodeDisabling/Exception/NodeAggregateIsAlreadyEnabled.php | 2 +- .../Exception/DimensionSpacePointIsAlreadyOccupied.php | 2 +- .../Feature/SubtreeTagging/Exception/SubtreeIsAlreadyTagged.php | 2 +- .../Feature/SubtreeTagging/Exception/SubtreeIsNotTagged.php | 2 +- .../WorkspaceCreation/Exception/BaseWorkspaceDoesNotExist.php | 2 +- .../WorkspaceCreation/Exception/WorkspaceAlreadyExists.php | 2 +- .../Exception/CircularRelationBetweenWorkspacesException.php | 2 +- .../Classes/Infrastructure/Property/PropertyType.php | 2 +- .../Classes/SharedModel/Exception/AbsoluteNodePathIsInvalid.php | 2 +- .../SharedModel/Exception/ContentStreamAlreadyExists.php | 2 +- .../SharedModel/Exception/ContentStreamDoesNotExistYet.php | 2 +- .../Classes/SharedModel/Exception/ContentStreamIsClosed.php | 2 +- .../Classes/SharedModel/Exception/ContentStreamIsNotClosed.php | 2 +- .../Exception/DimensionSpacePointIsNotYetOccupied.php | 2 +- .../Exception/InvalidNodeTypePostprocessorException.php | 2 +- .../Exception/NodeAggregateCurrentlyDoesNotExist.php | 2 +- .../SharedModel/Exception/NodeAggregateCurrentlyExists.php | 2 +- .../NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint.php | 2 +- ...NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet.php | 2 +- .../NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsAmbiguous.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsDescendant.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsNoChild.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsNoSibling.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsNotRoot.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsRoot.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsTethered.php | 2 +- .../Classes/SharedModel/Exception/NodeAggregateIsUntethered.php | 2 +- .../SharedModel/Exception/NodeAggregatesTypeIsAmbiguous.php | 2 +- .../SharedModel/Exception/NodeConfigurationException.php | 2 +- .../Classes/SharedModel/Exception/NodeConstraintException.php | 2 +- .../Classes/SharedModel/Exception/NodeNameIsAlreadyCovered.php | 2 +- .../Classes/SharedModel/Exception/NodeTypeIsAbstract.php | 2 +- .../Classes/SharedModel/Exception/NodeTypeIsFinalException.php | 2 +- .../Classes/SharedModel/Exception/NodeTypeIsNotOfTypeRoot.php | 2 +- .../Classes/SharedModel/Exception/NodeTypeIsOfTypeRoot.php | 2 +- .../Classes/SharedModel/Exception/PropertyCannotBeSet.php | 2 +- .../Classes/SharedModel/Exception/PropertyTypeIsInvalid.php | 2 +- .../Classes/SharedModel/Exception/ReferenceCannotBeSet.php | 2 +- .../Exception/RootNodeAggregateTypeIsAlreadyOccupied.php | 2 +- .../Exception/TetheredNodeAggregateCannotBeRemoved.php | 2 +- .../Classes/SharedModel/Exception/WorkspaceDoesNotExist.php | 2 +- .../SharedModel/Exception/WorkspaceHasNoBaseWorkspaceName.php | 2 +- 53 files changed, 53 insertions(+), 53 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionIdIsInvalid.php b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionIdIsInvalid.php index 44fe2822ffc..777c49efd8f 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionIdIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionIdIsInvalid.php @@ -18,7 +18,7 @@ * The exception to be thrown if an invalid content dimension id was attempted to be initialized * @api */ -class ContentDimensionIdIsInvalid extends \DomainException +class ContentDimensionIdIsInvalid extends \RuntimeException { public static function becauseItMustNotBeEmpty(): self { diff --git a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueIsInvalid.php b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueIsInvalid.php index 9ea9bbc700d..8e3032cb204 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueIsInvalid.php @@ -18,7 +18,7 @@ * The exception to be thrown if an invalid content dimension value was attempted to be initialized * @api */ -class ContentDimensionValueIsInvalid extends \DomainException +class ContentDimensionValueIsInvalid extends \RuntimeException { public static function becauseItMustNotBeEmpty(): self { diff --git a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueSpecializationDepthIsInvalid.php b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueSpecializationDepthIsInvalid.php index ee651a2d81a..28923054325 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueSpecializationDepthIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValueSpecializationDepthIsInvalid.php @@ -18,7 +18,7 @@ * The exception to be thrown if an invalid content dimension value specialization depth was tried to be initialized * @api */ -class ContentDimensionValueSpecializationDepthIsInvalid extends \DomainException +class ContentDimensionValueSpecializationDepthIsInvalid extends \RuntimeException { public static function becauseItMustBeNonNegative(int $attemptedValue): self { diff --git a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValuesAreInvalid.php b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValuesAreInvalid.php index 5efbdc8f65c..6b88d9e1db4 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValuesAreInvalid.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/Exception/ContentDimensionValuesAreInvalid.php @@ -18,7 +18,7 @@ * The exception to be thrown if content dimension values are tried to be initialized empty * @api */ -class ContentDimensionValuesAreInvalid extends \DomainException +class ContentDimensionValuesAreInvalid extends \RuntimeException { public static function becauseTheyMustNotBeEmpty(): self { diff --git a/Neos.ContentRepository.Core/Classes/Dimension/Exception/GeneralizationIsInvalid.php b/Neos.ContentRepository.Core/Classes/Dimension/Exception/GeneralizationIsInvalid.php index 1559312416d..a2b3a0eca5f 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/Exception/GeneralizationIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/Exception/GeneralizationIsInvalid.php @@ -21,7 +21,7 @@ * The exception to be thrown if an invalid generalization of a content dimension value was tried to be initialized * @api */ -class GeneralizationIsInvalid extends \DomainException +class GeneralizationIsInvalid extends \RuntimeException { public static function becauseComparedValueIsNoSpecialization( ContentDimensionValue $value, diff --git a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/ContentSubgraphVariationWeightsAreIncomparable.php b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/ContentSubgraphVariationWeightsAreIncomparable.php index 67769939354..750e2de0850 100644 --- a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/ContentSubgraphVariationWeightsAreIncomparable.php +++ b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/ContentSubgraphVariationWeightsAreIncomparable.php @@ -21,7 +21,7 @@ * e.g. if they compose of different dimension combinations * @api */ -class ContentSubgraphVariationWeightsAreIncomparable extends \DomainException +class ContentSubgraphVariationWeightsAreIncomparable extends \RuntimeException { public static function butWereAttemptedTo( ContentSubgraphVariationWeight $first, diff --git a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointIsNoSpecialization.php b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointIsNoSpecialization.php index 3350ac8eaae..b80abf6d6c4 100644 --- a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointIsNoSpecialization.php +++ b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointIsNoSpecialization.php @@ -21,7 +21,7 @@ * as a specialization of another one but isn't * @api */ -class DimensionSpacePointIsNoSpecialization extends \DomainException +class DimensionSpacePointIsNoSpecialization extends \RuntimeException { public static function butWasSupposedToBe(DimensionSpacePoint $target, DimensionSpacePoint $source): self { diff --git a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointNotFound.php b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointNotFound.php index 111ab435412..a006915978b 100644 --- a/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointNotFound.php +++ b/Neos.ContentRepository.Core/Classes/DimensionSpace/Exception/DimensionSpacePointNotFound.php @@ -20,7 +20,7 @@ * A dimension space point was not found * @api */ -class DimensionSpacePointNotFound extends \DomainException +class DimensionSpacePointNotFound extends \RuntimeException { public static function becauseItIsNotWithinTheAllowedDimensionSubspace( DimensionSpacePoint $dimensionSpacePoint diff --git a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Exception/DimensionSpacePointAlreadyExists.php b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Exception/DimensionSpacePointAlreadyExists.php index aa568414000..ff8a007f017 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Exception/DimensionSpacePointAlreadyExists.php +++ b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Exception/DimensionSpacePointAlreadyExists.php @@ -20,6 +20,6 @@ * * @api */ -final class DimensionSpacePointAlreadyExists extends \DomainException +final class DimensionSpacePointAlreadyExists extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyDisabled.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyDisabled.php index c659a1532c5..8871e31e7f3 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyDisabled.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyDisabled.php @@ -17,6 +17,6 @@ /** * @api */ -final class NodeAggregateIsAlreadyDisabled extends \DomainException +final class NodeAggregateIsAlreadyDisabled extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyEnabled.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyEnabled.php index 7a1480dfc20..8df3a0871ce 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyEnabled.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Exception/NodeAggregateIsAlreadyEnabled.php @@ -17,6 +17,6 @@ /** * @api */ -final class NodeAggregateIsAlreadyEnabled extends \DomainException +final class NodeAggregateIsAlreadyEnabled extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Exception/DimensionSpacePointIsAlreadyOccupied.php b/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Exception/DimensionSpacePointIsAlreadyOccupied.php index bd2b731cf72..b07ee334e44 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Exception/DimensionSpacePointIsAlreadyOccupied.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Exception/DimensionSpacePointIsAlreadyOccupied.php @@ -20,6 +20,6 @@ * * @api */ -final class DimensionSpacePointIsAlreadyOccupied extends \DomainException +final class DimensionSpacePointIsAlreadyOccupied extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsAlreadyTagged.php b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsAlreadyTagged.php index 8a1388e7d9c..483e9728fb7 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsAlreadyTagged.php +++ b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsAlreadyTagged.php @@ -17,6 +17,6 @@ /** * @api */ -final class SubtreeIsAlreadyTagged extends \DomainException +final class SubtreeIsAlreadyTagged extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsNotTagged.php b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsNotTagged.php index f648b336de7..14ca15239b6 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsNotTagged.php +++ b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Exception/SubtreeIsNotTagged.php @@ -17,6 +17,6 @@ /** * @api */ -final class SubtreeIsNotTagged extends \DomainException +final class SubtreeIsNotTagged extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/BaseWorkspaceDoesNotExist.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/BaseWorkspaceDoesNotExist.php index ed3117bb0ff..9b3d1f52c49 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/BaseWorkspaceDoesNotExist.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/BaseWorkspaceDoesNotExist.php @@ -19,7 +19,7 @@ /** * @api */ -final class BaseWorkspaceDoesNotExist extends \DomainException +final class BaseWorkspaceDoesNotExist extends \RuntimeException { public static function butWasSupposedTo(WorkspaceName $name): self { diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/WorkspaceAlreadyExists.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/WorkspaceAlreadyExists.php index 4440ecbbdb6..f403b0ab2fa 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/WorkspaceAlreadyExists.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Exception/WorkspaceAlreadyExists.php @@ -17,6 +17,6 @@ /** * @api */ -final class WorkspaceAlreadyExists extends \DomainException +final class WorkspaceAlreadyExists extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Exception/CircularRelationBetweenWorkspacesException.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Exception/CircularRelationBetweenWorkspacesException.php index 5c87eb216c2..e8aabec7b8a 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Exception/CircularRelationBetweenWorkspacesException.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Exception/CircularRelationBetweenWorkspacesException.php @@ -7,6 +7,6 @@ /** * @api */ -class CircularRelationBetweenWorkspacesException extends \DomainException +class CircularRelationBetweenWorkspacesException extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/Infrastructure/Property/PropertyType.php b/Neos.ContentRepository.Core/Classes/Infrastructure/Property/PropertyType.php index bac9600942d..5220e3b57a6 100644 --- a/Neos.ContentRepository.Core/Classes/Infrastructure/Property/PropertyType.php +++ b/Neos.ContentRepository.Core/Classes/Infrastructure/Property/PropertyType.php @@ -47,7 +47,7 @@ private function __construct( if ($this->isArrayOf()) { $arrayOfType = self::tryFromString($this->getArrayOf()); if (!$arrayOfType || $arrayOfType->isArray()) { - throw new \DomainException(sprintf( + throw new \InvalidArgumentException(sprintf( 'Array declaration "%s" has invalid subType. Expected either class string or int', $this->value )); diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/AbsoluteNodePathIsInvalid.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/AbsoluteNodePathIsInvalid.php index aebe251b703..785f6a2d33b 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/AbsoluteNodePathIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/AbsoluteNodePathIsInvalid.php @@ -19,7 +19,7 @@ * * @api because this might have to be handled in the application layer */ -final class AbsoluteNodePathIsInvalid extends \DomainException +final class AbsoluteNodePathIsInvalid extends \RuntimeException { public static function becauseItDoesNotMatchTheRequiredPattern(string $attemptedValue): self { diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamAlreadyExists.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamAlreadyExists.php index 9908a0f4147..e8061cb7028 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamAlreadyExists.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamAlreadyExists.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class ContentStreamAlreadyExists extends \DomainException +final class ContentStreamAlreadyExists extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamDoesNotExistYet.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamDoesNotExistYet.php index ad8a1bbdb47..4ace1722f03 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamDoesNotExistYet.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamDoesNotExistYet.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class ContentStreamDoesNotExistYet extends \DomainException +final class ContentStreamDoesNotExistYet extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsClosed.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsClosed.php index 5c08d80f642..ffbbc4a0126 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsClosed.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsClosed.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class ContentStreamIsClosed extends \DomainException +final class ContentStreamIsClosed extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsNotClosed.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsNotClosed.php index e0067f3ad0c..f662626c1ad 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsNotClosed.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ContentStreamIsNotClosed.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class ContentStreamIsNotClosed extends \DomainException +final class ContentStreamIsNotClosed extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/DimensionSpacePointIsNotYetOccupied.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/DimensionSpacePointIsNotYetOccupied.php index 685aed15cdd..a3470a465b5 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/DimensionSpacePointIsNotYetOccupied.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/DimensionSpacePointIsNotYetOccupied.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class DimensionSpacePointIsNotYetOccupied extends \DomainException +final class DimensionSpacePointIsNotYetOccupied extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/InvalidNodeTypePostprocessorException.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/InvalidNodeTypePostprocessorException.php index 39f894e7171..1b4d73cef1d 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/InvalidNodeTypePostprocessorException.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/InvalidNodeTypePostprocessorException.php @@ -19,6 +19,6 @@ * * @api */ -class InvalidNodeTypePostprocessorException extends \DomainException +class InvalidNodeTypePostprocessorException extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyDoesNotExist.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyDoesNotExist.php index 7cc667ee842..bdcf76554cd 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyDoesNotExist.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyDoesNotExist.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateCurrentlyDoesNotExist extends \DomainException +final class NodeAggregateCurrentlyDoesNotExist extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyExists.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyExists.php index 038eee1caab..7d7a26eb243 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyExists.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateCurrentlyExists.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateCurrentlyExists extends \DomainException +final class NodeAggregateCurrentlyExists extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint.php index 22b5d218c99..d1ea2217a14 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint extends \DomainException +final class NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint extends \RuntimeException { public static function butWasSupposedTo( NodeAggregateId $nodeAggregateId, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet.php index fa02abbbe74..07c5d31b92c 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet extends \DomainException +final class NodeAggregateDoesCurrentlyNotCoverDimensionSpacePointSet extends \RuntimeException { public static function butWasSupposedTo( NodeAggregateId $nodeAggregateId, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint.php index 81b6809f380..8d2134e50db 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint extends \DomainException +final class NodeAggregateDoesCurrentlyNotOccupyDimensionSpacePoint extends \RuntimeException { public static function butWasSupposedTo( NodeAggregateId $nodeAggregateId, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsAmbiguous.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsAmbiguous.php index 2256dbdedbc..0edad53fea0 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsAmbiguous.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsAmbiguous.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsAmbiguous extends \DomainException +final class NodeAggregateIsAmbiguous extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsDescendant.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsDescendant.php index c2115ba93de..8918bfe8ff5 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsDescendant.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsDescendant.php @@ -21,6 +21,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsDescendant extends \DomainException +final class NodeAggregateIsDescendant extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoChild.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoChild.php index 80807f60f97..af01eed28bf 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoChild.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoChild.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsNoChild extends \DomainException +final class NodeAggregateIsNoChild extends \RuntimeException { public static function butWasExpectedToBeInDimensionSpacePoint( NodeAggregateId $nodeAggregateId, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoSibling.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoSibling.php index 9835d927baa..7c6cb09c786 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoSibling.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNoSibling.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsNoSibling extends \DomainException +final class NodeAggregateIsNoSibling extends \RuntimeException { public static function butWasExpectedToBeInDimensionSpacePoint(NodeAggregateId $nodeAggregateId, NodeAggregateId $referenceNodeAggregateId, DimensionSpacePoint $dimensionSpacePoint): self { diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNotRoot.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNotRoot.php index fffe6c5f841..5170b77fb4f 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNotRoot.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsNotRoot.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsNotRoot extends \DomainException +final class NodeAggregateIsNotRoot extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsRoot.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsRoot.php index 4f55e9710e9..35bf35af2d6 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsRoot.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsRoot.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsRoot extends \DomainException +final class NodeAggregateIsRoot extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsTethered.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsTethered.php index 7238880dafd..fbd265988d1 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsTethered.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsTethered.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsTethered extends \DomainException +final class NodeAggregateIsTethered extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsUntethered.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsUntethered.php index fe0688363cb..10ee4c05188 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsUntethered.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregateIsUntethered.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregateIsUntethered extends \DomainException +final class NodeAggregateIsUntethered extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregatesTypeIsAmbiguous.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregatesTypeIsAmbiguous.php index 3929fce8c07..d58d5ee9166 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregatesTypeIsAmbiguous.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeAggregatesTypeIsAmbiguous.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeAggregatesTypeIsAmbiguous extends \DomainException +final class NodeAggregatesTypeIsAmbiguous extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConfigurationException.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConfigurationException.php index 876031afd80..9ead94436c7 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConfigurationException.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConfigurationException.php @@ -19,6 +19,6 @@ * * @api */ -class NodeConfigurationException extends \DomainException +class NodeConfigurationException extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConstraintException.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConstraintException.php index ce95207af99..796e503c052 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConstraintException.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeConstraintException.php @@ -19,6 +19,6 @@ * * @api */ -class NodeConstraintException extends \DomainException +class NodeConstraintException extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeNameIsAlreadyCovered.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeNameIsAlreadyCovered.php index 0506c3acb2e..205e9b3ed43 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeNameIsAlreadyCovered.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeNameIsAlreadyCovered.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeNameIsAlreadyCovered extends \DomainException +final class NodeNameIsAlreadyCovered extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsAbstract.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsAbstract.php index 069ec1fc70e..1238589db4a 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsAbstract.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsAbstract.php @@ -21,7 +21,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeTypeIsAbstract extends \DomainException +final class NodeTypeIsAbstract extends \RuntimeException { public static function butWasNotSupposedToBe(NodeTypeName $nodeTypeName): self { diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsFinalException.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsFinalException.php index c59131192ef..f27c5ccb46d 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsFinalException.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsFinalException.php @@ -19,6 +19,6 @@ * * @api */ -class NodeTypeIsFinalException extends \DomainException +class NodeTypeIsFinalException extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsNotOfTypeRoot.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsNotOfTypeRoot.php index 14b1f57e8ee..47f3ce7b2dc 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsNotOfTypeRoot.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsNotOfTypeRoot.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeTypeIsNotOfTypeRoot extends \DomainException +final class NodeTypeIsNotOfTypeRoot extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsOfTypeRoot.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsOfTypeRoot.php index dc51115bfaf..04dda4b7aa3 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsOfTypeRoot.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/NodeTypeIsOfTypeRoot.php @@ -20,6 +20,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class NodeTypeIsOfTypeRoot extends \DomainException +final class NodeTypeIsOfTypeRoot extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyCannotBeSet.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyCannotBeSet.php index 8b2c1937c93..bb4b2df045f 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyCannotBeSet.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyCannotBeSet.php @@ -22,7 +22,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class PropertyCannotBeSet extends \DomainException +final class PropertyCannotBeSet extends \RuntimeException { public static function becauseTheValueDoesNotMatchTheConfiguredType( PropertyName $propertyName, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyTypeIsInvalid.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyTypeIsInvalid.php index c62b6e64dbd..a3cb90463b3 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyTypeIsInvalid.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/PropertyTypeIsInvalid.php @@ -22,7 +22,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class PropertyTypeIsInvalid extends \DomainException +final class PropertyTypeIsInvalid extends \RuntimeException { public static function becauseItIsUndefined( PropertyName $propertyName, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ReferenceCannotBeSet.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ReferenceCannotBeSet.php index 46c6ca54780..cc260b96d14 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ReferenceCannotBeSet.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/ReferenceCannotBeSet.php @@ -23,7 +23,7 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class ReferenceCannotBeSet extends \DomainException +final class ReferenceCannotBeSet extends \RuntimeException { public static function becauseTheNodeTypeDoesNotDeclareIt( ReferenceName $propertyName, diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/RootNodeAggregateTypeIsAlreadyOccupied.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/RootNodeAggregateTypeIsAlreadyOccupied.php index 5b5e010b547..1ffb1c93efa 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/RootNodeAggregateTypeIsAlreadyOccupied.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/RootNodeAggregateTypeIsAlreadyOccupied.php @@ -9,7 +9,7 @@ /** * @api Userland code might have to react to this */ -final class RootNodeAggregateTypeIsAlreadyOccupied extends \DomainException +final class RootNodeAggregateTypeIsAlreadyOccupied extends \RuntimeException { public static function butWasExpectedNotTo(NodeTypeName $nodeTypeName): self { diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/TetheredNodeAggregateCannotBeRemoved.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/TetheredNodeAggregateCannotBeRemoved.php index 23bf29b4942..142b08116d2 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/TetheredNodeAggregateCannotBeRemoved.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/TetheredNodeAggregateCannotBeRemoved.php @@ -19,6 +19,6 @@ * * @api because exception is thrown during invariant checks on command execution */ -final class TetheredNodeAggregateCannotBeRemoved extends \DomainException +final class TetheredNodeAggregateCannotBeRemoved extends \RuntimeException { } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceDoesNotExist.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceDoesNotExist.php index 3def569da87..95eaab0594b 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceDoesNotExist.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceDoesNotExist.php @@ -19,7 +19,7 @@ /** * @api because exception is thrown during invariant checks on command execution */ -final class WorkspaceDoesNotExist extends \DomainException +final class WorkspaceDoesNotExist extends \RuntimeException { public static function butWasSupposedTo(WorkspaceName $name): self { diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceHasNoBaseWorkspaceName.php b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceHasNoBaseWorkspaceName.php index b75479af816..2f55a1d3c79 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceHasNoBaseWorkspaceName.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Exception/WorkspaceHasNoBaseWorkspaceName.php @@ -19,7 +19,7 @@ /** * @api because exception is thrown during invariant checks on command execution */ -final class WorkspaceHasNoBaseWorkspaceName extends \DomainException +final class WorkspaceHasNoBaseWorkspaceName extends \RuntimeException { public static function butWasSupposedTo(WorkspaceName $name): self {