WorkspaceCommandSkipped
class WorkspaceCommandSkipped extends RuntimeException (View source)
Exception to denote that the workspace operation was skipped. No events were published.
Workspace publishing/discarding
Command skipped if there are no (selected) publishable changes.
To avoid this exception being thrown into the outer world it should be caught and logged or the case were its likely that the operation might be a noop can easily be determined beforehand via {[\Neos\ContentRepository\Core\SharedModel\Workspace\Workspace::hasPublishableChanges()}:
](../../../../Neos/ContentRepository/Core/SharedModel/Workspace/Workspace.html) if ($workspace->hasPublishableChanges()) { $contentRepository->handle(...); }
Workspace rebase
Command skipped if the workspace is not outdated.
Workspace base change
Command skipped when attempting to change the base workspace to the currently set base workspace.
Note:
The case is not handled gracefully with a no-op as there would be no traces (emitted events) of the handled command, and the original content stream id is kept (for publish operations). This exception denoting the operation is obsolete should harden the interaction and make behaviour more explicit.
Methods
No description
No description
Details
static WorkspaceCommandSkipped
becauseWorkspaceToPublishIsEmpty(WorkspaceName $workspaceName)
No description
static WorkspaceCommandSkipped
becauseWorkspaceToDiscardIsEmpty(WorkspaceName $workspaceName)
No description
static WorkspaceCommandSkipped
becauseFilterDidNotMatch(WorkspaceName $workspaceName, NodeAggregateIds $selectedNodeAggregateIds)
No description
static WorkspaceCommandSkipped
becauseWorkspaceToRebaseIsNotOutdated(WorkspaceName $workspaceName)
No description
static WorkspaceCommandSkipped
becauseTheBaseWorkspaceIsUnchanged(WorkspaceName $baseWorkspaceName, WorkspaceName $workspaceName)
No description