Page MenuHomeWickedGov Phorge

PathConflict.php
No OneTemporary

Size
833 B
Referenced Files
None
Subscribers
None

PathConflict.php

<?php
namespace MediaWiki\Rest\PathTemplateMatcher;
use Exception;
/**
* @newable
*/
class PathConflict extends Exception {
/** @var string */
public $newTemplate;
/** @var mixed */
public $newUserData;
/** @var string */
public $existingTemplate;
/** @var mixed */
public $existingUserData;
/**
* @stable to call
*
* @param string $template
* @param mixed $userData
* @param array $existingNode
*/
public function __construct( $template, $userData, $existingNode ) {
$this->newTemplate = $template;
$this->newUserData = $userData;
$this->existingTemplate = $existingNode['template'];
$this->existingUserData = $existingNode['userData'];
parent::__construct( "Unable to add path template \"$template\" since it conflicts " .
"with the existing template \"{$this->existingTemplate}\"" );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 00:09 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/b3/5b53a152f84a438d768876d4f5d1
Default Alt Text
PathConflict.php (833 B)

Event Timeline