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