public function __construct($groupIndex, $hostId) { $msg = "machine '{$hostId}' in environment group #{$groupIndex} must define at least one role"; parent::__construct(400, $msg, $msg); }