summaryrefslogtreecommitdiff
blob: 425cef7bd90330d3dd1fda17ff4fdb31947acba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\PageTranslation;

use Exception;
use SplObjectStorage;

/**
 * Exception thrown when a translatable page move is not possible
 * @author Abijeet Patro
 * @license GPL-2.0-or-later
 * @since 2021.09
 */
class ImpossiblePageMove extends Exception {
	/** @var SplObjectStorage */
	private $blockers;

	public function __construct( SplObjectStorage $blockers ) {
		parent::__construct();
		$this->blockers = $blockers;
	}

	public function getBlockers(): SplObjectStorage {
		return $this->blockers;
	}
}