Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ReferenceSameLexemeException
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 getErrorMessage
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getApiErrorCode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Wikibase\Lexeme\Domain\Merge\Exceptions;
4
5use MediaWiki\Message\Message;
6
7/**
8 * @license GPL-2.0-or-later
9 */
10class ReferenceSameLexemeException extends MergingException {
11
12    public function getErrorMessage(): Message {
13        return new Message( 'wikibase-lexeme-mergelexemes-error-same-lexemes' );
14    }
15
16    public function getApiErrorCode() {
17        return 'cant-merge-self';
18    }
19
20}