public function __construct($groupIndex) { $msg = "environment group #{$groupIndex} needs to set 'type' field"; parent::__construct(400, $msg, $msg); }