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