Generates: "Argument '{$argumentName}' has a bad state: {$whatIsWrong}".
public __construct ( string $argumentName, string $whatIsWrong, Exception $previous = null ) | ||
$argumentName | string | |
$whatIsWrong | string | |
$previous | Exception |
/** * 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)); }
/** * 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)); }