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