MediaWiki  master
PathConflict.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Exception;
6 
10 class PathConflict extends Exception {
11  public $newTemplate;
12  public $newUserData;
15 
23  public function __construct( $template, $userData, $existingNode ) {
24  $this->newTemplate = $template;
25  $this->newUserData = $userData;
26  $this->existingTemplate = $existingNode['template'];
27  $this->existingUserData = $existingNode['userData'];
28  parent::__construct( "Unable to add path template \"$template\" since it conflicts " .
29  "with the existing template \"{$this->existingTemplate}\"" );
30  }
31 }
__construct( $template, $userData, $existingNode)