MediaWiki REL1_39
PathConflict.php
Go to the documentation of this file.
1<?php
2
4
5use Exception;
6
10class PathConflict extends Exception {
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)