Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
MessengerError.php
1<?php
2
4
7
8class MessengerError extends Error
9{
10 public const PULL_NOT_ENABLED = 'PULL_NOT_ENABLED';
11 public const MESSENGER_NOT_ENABLED = 'MESSENGER_NOT_ENABLED';
12
13 protected function loadErrorMessage($code, $replacements): string
14 {
15 return Loc::getMessage("ERROR_MESSENGER_{$code}", $replacements) ?: '';
16 }
17
18 protected function loadErrorDescription($code, $replacements): string
19 {
20 return Loc::getMessage("ERROR_MESSENGER_{$code}_DESC", $replacements) ?: '';
21 }
22}
loadErrorMessage($code, $replacements)
loadErrorDescription($code, $replacements)
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29