MediaWiki REL1_34
PathConflict.php
Go to the documentation of this file.
1<?php
2
4
5use Exception;
6
7class PathConflict extends Exception {
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}
__construct( $template, $userData, $existingNode)