Usage: throw new BadState( 'nodes', 'array' );
Inheritance: extends eZ\Publish\API\Repository\Exceptions\BadStateException, implements eZ\Publish\Core\Base\Translatable, use trait eZ\Publish\Core\Base\TranslatableBase
 /**
  * Creates a new exception for $typeId in $status;.
  *
  * @param mixed $typeId
  * @param mixed $status
  */
 public function __construct($typeId, $status)
 {
     parent::__construct('$typeId', sprintf('Type with ID "%s" in status "%s" cannot be unlinked from its last group.', $typeId, $status));
 }
Ejemplo n.º 2
0
 /**
  * Creates a new exception for $groupId.
  *
  * @param mixed $groupId
  */
 public function __construct($groupId)
 {
     parent::__construct('$groupId', sprintf('Group with ID "%s" is not empty.', $groupId));
 }
 /**
  * Creates a new exception for $typeId in $status;
  *
  * @param mixed $typeId
  * @param mixed $status
  */
 public function __construct($typeId, $status)
 {
     parent::__construct('$typeId', sprintf('Type with ID "%s" in status "%s" still has content instances and can therefore not be deleted.', $typeId, $status));
 }