Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
UserNotGlobalException
0.00% covered (danger)
0.00%
0 / 1
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 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare( strict_types=1 );
4
5namespace MediaWiki\Extension\CampaignEvents\MWEntity;
6
7use RuntimeException;
8
9/**
10 * This exception is thrown when a local account does not correspond to any global account.
11 */
12class UserNotGlobalException extends RuntimeException {
13    /**
14     * @param int $localID
15     */
16    public function __construct( int $localID ) {
17        parent::__construct( "User with local ID $localID does not have a global account." );
18    }
19}