Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
SettingsError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Settings
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
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
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Settings\SettingsError
Definition
SettingsError.php:9
Bitrix\Im\V2\Settings\SettingsError\UNDEFINED_GROUP_ID
const UNDEFINED_GROUP_ID
Definition
SettingsError.php:10
Bitrix\Im\V2\Settings\SettingsError\ACCESS_DENIED
const ACCESS_DENIED
Definition
SettingsError.php:11
Bitrix\Im\V2\Settings\SettingsError\WRONG_SCHEME
const WRONG_SCHEME
Definition
SettingsError.php:12
Bitrix\Im\V2\Settings\SettingsError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
SettingsError.php:14
Bitrix\Im\V2\Settings\SettingsError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
SettingsError.php:19
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\Settings
Definition
CacheManager.php:3
modules
im
lib
V2
Settings
SettingsError.php
Создано системой
1.10.0