Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ReactionError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Message\Reaction
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
ReactionError
extends
Error
9
{
10
public
const
NOT_FOUND
=
'REACTION_NOT_FOUND'
;
11
public
const
ALREADY_SET
=
'REACTION_ALREADY_SET'
;
12
13
protected
function
loadErrorMessage
(
$code
, $replacements): string
14
{
15
return
Loc::getMessage
(
"ERROR_REACTION_{$code}"
, $replacements) ?:
''
;
16
}
17
18
protected
function
loadErrorDescription
(
$code
, $replacements): string
19
{
20
return
Loc::getMessage
(
"ERROR_REACTION_{$code}_DESC"
, $replacements) ?:
''
;
21
}
22
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Message\Reaction\ReactionError
Definition
ReactionError.php:9
Bitrix\Im\V2\Message\Reaction\ReactionError\NOT_FOUND
const NOT_FOUND
Definition
ReactionError.php:10
Bitrix\Im\V2\Message\Reaction\ReactionError\ALREADY_SET
const ALREADY_SET
Definition
ReactionError.php:11
Bitrix\Im\V2\Message\Reaction\ReactionError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
ReactionError.php:13
Bitrix\Im\V2\Message\Reaction\ReactionError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
ReactionError.php:18
Bitrix\Main\Error\$code
$code
Definition
error.php:16
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Im\V2\Message\Reaction
Definition
PushService.php:3
modules
im
lib
V2
Message
Reaction
ReactionError.php
Создано системой
1.10.0