public function __construct($fullPath, $pathSoFar, $leafType) { $msg = "Invalid path '{$fullPath}'; '{$pathSoFar}' is type '{$leafType}'"; parent::__construct(400, $msg, $msg); }