Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
DuplicateAggregateGroupException.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageGroupProcessing;
5
6use LocalizedException;
7use Wikimedia\Message\MessageValue;
8
15class DuplicateAggregateGroupException extends LocalizedException {
16 public function __construct( string $aggregateGroupName ) {
17 parent::__construct(
18 MessageValue::new( 'translate-error-duplicate-aggregategroup' )
19 ->plaintextParams( $aggregateGroupName )
20 );
21 }
22}
Exception thrown when a duplicate aggregate group with the given name is found.