Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ReactionError.php
1<?php
2
4
7
8class 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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29