Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
UserError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Entity\User
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
UserError
extends
Error
9
{
10
public
const
NOT_FOUND
=
'USER_NOT_FOUND'
;
11
12
protected
function
loadErrorMessage
(
$code
, $replacements): string
13
{
14
return
Loc::getMessage
(
"ERROR_USER_{$code}"
, $replacements) ?:
''
;
15
}
16
17
protected
function
loadErrorDescription
(
$code
, $replacements): string
18
{
19
return
Loc::getMessage
(
"ERROR_USER_{$code}_DESC"
, $replacements) ?:
''
;
20
}
21
}
Bitrix\Im\V2\Entity\User\UserError
Definition
UserError.php:9
Bitrix\Im\V2\Entity\User\UserError\NOT_FOUND
const NOT_FOUND
Definition
UserError.php:10
Bitrix\Im\V2\Entity\User\UserError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
UserError.php:12
Bitrix\Im\V2\Entity\User\UserError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
UserError.php:17
Bitrix\Im\V2\Error
Definition
Error.php:8
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\Entity\User
modules
im
lib
V2
Entity
User
UserError.php
Создано системой
1.10.0