3 namespace MediaWiki\Rest\PathTemplateMatcher
;
7 class PathConflict
extends Exception
{
10 public $existingTemplate;
11 public $existingUserData;
13 public function __construct( $template, $userData, $existingNode ) {
14 $this->newTemplate
= $template;
15 $this->newUserData
= $userData;
16 $this->existingTemplate
= $existingNode['template'];
17 $this->existingUserData
= $existingNode['userData'];
18 parent
::__construct( "Unable to add path template \"$template\" since it conflicts " .
19 "with the existing template \"{$this->existingTemplate}\"" );