Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
DuplicateAggregateGroupException
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageGroupProcessing;
5
6use LocalizedException;
7use Wikimedia\Message\MessageValue;
8
9/**
10 * Exception thrown when a duplicate aggregate group with the given name is found
11 * @author Abijeet Patro
12 * @license GPL-2.0-or-later
13 * @since 2024.11
14 */
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}