Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

RemoveLastGroupFromType.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Persistence\Legacy\Exception;
8
9 use eZ\Publish\Core\Base\Exceptions\BadStateException;
10
14 class RemoveLastGroupFromType extends BadStateException
15 {
22 public function __construct($typeId, $status)
23 {
24 parent::__construct(
25 '$typeId',
26 sprintf(
27 'Type with ID "%s" in status "%s" cannot be unlinked from its last group.',
28 $typeId,
29 $status
30 )
31 );
32 }
33 }
eZ\Publish\Core\Base\Exceptions\BadStateException
BadState Exception implementation.
Definition: Core/Base/Exceptions/BadStateException.php:20
eZ\Publish\Core\Persistence\Legacy\Exception\RemoveLastGroupFromType
Exception thrown when a Type is to be unlinked from its last Group.
Definition: RemoveLastGroupFromType.php:15
eZ\Publish\Core\Persistence\Legacy\Exception\RemoveLastGroupFromType\__construct
__construct($typeId, $status)
Creates a new exception for $typeId in $status;.
Definition: RemoveLastGroupFromType.php:22
eZ\Publish\Core\Persistence\Legacy\Exception
Definition: GroupNotEmpty.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.