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