MediaWiki  1.34.0
PathConflict.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Exception;
6 
7 class PathConflict extends Exception {
8  public $newTemplate;
9  public $newUserData;
12 
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}\"" );
20  }
21 }
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$existingTemplate
$existingTemplate
Definition: PathConflict.php:10
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$newUserData
$newUserData
Definition: PathConflict.php:9
MediaWiki\Rest\PathTemplateMatcher\PathConflict
Definition: PathConflict.php:7
MediaWiki\Rest\PathTemplateMatcher\PathConflict\__construct
__construct( $template, $userData, $existingNode)
Definition: PathConflict.php:13
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$newTemplate
$newTemplate
Definition: PathConflict.php:8
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$existingUserData
$existingUserData
Definition: PathConflict.php:11
MediaWiki\Rest\PathTemplateMatcher
Definition: PathConflict.php:3