public function __construct($filename, $index) { $msg = "Config file '{$filename}': 'role[{$index}]' must have 'role' setting"; parent::__construct(400, $msg, $msg); }