Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ChatError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Chat
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
ChatError
extends
Error
9
{
10
public
const
11
WRONG_TYPE
=
'WRONG_MESSAGE_TYPE'
,
12
WRONG_PARAMETER
=
'WRONG_PARAMETER'
,
13
WRONG_SENDER
=
'WRONG_SENDER'
,
14
WRONG_RECIPIENT
=
'WRONG_RECIPIENT'
,
15
WRONG_TARGET_CHAT
=
'WRONG_TARGET_CHAT'
,
16
WRONG_COLOR
=
'WRONG_COLOR'
,
17
WRONG_PARENT_CHAT
=
'WRONG_PARENT_CHAT'
,
18
WRONG_PARENT_MESSAGE
=
'WRONG_PARENT_MESSAGE'
,
19
WRONG_DISAPPEARING_DURATION
=
'WRONG_DISAPPEARING_DURATION'
,
20
ALREADY_DISAPPEARING
=
'ALREADY_DISAPPEARING'
,
21
ACCESS_DENIED
=
'ACCESS_DENIED'
,
22
NOT_FOUND
=
'NOT_FOUND'
,
23
BEFORE_SEND_EVENT
=
'EVENT_MESSAGE_SEND'
,
24
FROM_OTHER_MODULE
=
'FROM_OTHER_MODULE'
,
25
CREATION_ERROR
=
'CREATION_ERROR'
,
26
ID_EMPTY_ERROR
=
'ID_EMPTY_ERROR'
,
27
INVALID_PIN_POSITION
=
'INVALID_PIN_POSITION'
,
28
MAX_PINNED_CHATS_ERROR
=
'MAX_PINNED_CHATS_ERROR'
,
29
USER_ID_EMPTY_ERROR
=
'USER_ID_EMPTY_ERROR'
,
30
IMBOT_NOT_INSTALLED
=
'IMBOT_NOT_INSTALLED'
,
31
COPILOT_NOT_INSTALLED
=
'COPILOT_NOT_INSTALLED'
,
32
TASK_ACCESS_ERROR
=
'TASK_ACCESS_ERROR'
33
;
34
35
protected
function
loadErrorMessage
(
$code
, $replacements): string
36
{
37
return
Loc::getMessage
(
"ERROR_CHAT_{$code}"
, $replacements) ?:
''
;
38
}
39
40
protected
function
loadErrorDescription
(
$code
, $replacements): string
41
{
42
return
Loc::getMessage
(
"ERROR_CHAT_{$code}_DESC"
, $replacements) ?:
''
;
43
}
44
}
Bitrix\Im\V2\Chat\ChatError
Definition
ChatError.php:9
Bitrix\Im\V2\Chat\ChatError\CREATION_ERROR
const CREATION_ERROR
Definition
ChatError.php:25
Bitrix\Im\V2\Chat\ChatError\COPILOT_NOT_INSTALLED
const COPILOT_NOT_INSTALLED
Definition
ChatError.php:31
Bitrix\Im\V2\Chat\ChatError\MAX_PINNED_CHATS_ERROR
const MAX_PINNED_CHATS_ERROR
Definition
ChatError.php:28
Bitrix\Im\V2\Chat\ChatError\WRONG_COLOR
const WRONG_COLOR
Definition
ChatError.php:16
Bitrix\Im\V2\Chat\ChatError\WRONG_RECIPIENT
const WRONG_RECIPIENT
Definition
ChatError.php:14
Bitrix\Im\V2\Chat\ChatError\WRONG_PARAMETER
const WRONG_PARAMETER
Definition
ChatError.php:12
Bitrix\Im\V2\Chat\ChatError\ACCESS_DENIED
const ACCESS_DENIED
Definition
ChatError.php:21
Bitrix\Im\V2\Chat\ChatError\WRONG_SENDER
const WRONG_SENDER
Definition
ChatError.php:13
Bitrix\Im\V2\Chat\ChatError\ID_EMPTY_ERROR
const ID_EMPTY_ERROR
Definition
ChatError.php:26
Bitrix\Im\V2\Chat\ChatError\BEFORE_SEND_EVENT
const BEFORE_SEND_EVENT
Definition
ChatError.php:23
Bitrix\Im\V2\Chat\ChatError\IMBOT_NOT_INSTALLED
const IMBOT_NOT_INSTALLED
Definition
ChatError.php:30
Bitrix\Im\V2\Chat\ChatError\INVALID_PIN_POSITION
const INVALID_PIN_POSITION
Definition
ChatError.php:27
Bitrix\Im\V2\Chat\ChatError\NOT_FOUND
const NOT_FOUND
Definition
ChatError.php:22
Bitrix\Im\V2\Chat\ChatError\WRONG_PARENT_CHAT
const WRONG_PARENT_CHAT
Definition
ChatError.php:17
Bitrix\Im\V2\Chat\ChatError\WRONG_TARGET_CHAT
const WRONG_TARGET_CHAT
Definition
ChatError.php:15
Bitrix\Im\V2\Chat\ChatError\WRONG_TYPE
const WRONG_TYPE
Definition
ChatError.php:11
Bitrix\Im\V2\Chat\ChatError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
ChatError.php:35
Bitrix\Im\V2\Chat\ChatError\TASK_ACCESS_ERROR
const TASK_ACCESS_ERROR
Definition
ChatError.php:32
Bitrix\Im\V2\Chat\ChatError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
ChatError.php:40
Bitrix\Im\V2\Chat\ChatError\WRONG_DISAPPEARING_DURATION
const WRONG_DISAPPEARING_DURATION
Definition
ChatError.php:19
Bitrix\Im\V2\Chat\ChatError\FROM_OTHER_MODULE
const FROM_OTHER_MODULE
Definition
ChatError.php:24
Bitrix\Im\V2\Chat\ChatError\ALREADY_DISAPPEARING
const ALREADY_DISAPPEARING
Definition
ChatError.php:20
Bitrix\Im\V2\Chat\ChatError\USER_ID_EMPTY_ERROR
const USER_ID_EMPTY_ERROR
Definition
ChatError.php:29
Bitrix\Im\V2\Chat\ChatError\WRONG_PARENT_MESSAGE
const WRONG_PARENT_MESSAGE
Definition
ChatError.php:18
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\Chat
Definition
ChannelChat.php:3
modules
im
lib
V2
Chat
ChatError.php
Создано системой
1.10.0