public function __construct($pathToFile) { $msg = "Config file '{$pathToFile}' contains invalid JSON"; parent::__construct(400, $msg, $msg); }