Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
MessageError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Message
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
MessageError
extends
Error
9
{
10
public
const
11
WRONG_PARAMETER
=
'WRONG_PARAMETER'
,
12
WRONG_SENDER
=
'WRONG_SENDER'
,
13
EMPTY_MESSAGE
=
'EMPTY_MESSAGE'
,
14
NOTIFY_MODULE
=
'NOTIFY_MODULE'
,
15
NOTIFY_EVENT
=
'NOTIFY_EVENT'
,
16
NOTIFY_TYPE
=
'NOTIFY_TYPE'
,
17
NOTIFY_BUTTONS
=
'NOTIFY_BUTTONS'
,
18
MESSAGE_NOT_FOUND
=
'MESSAGE_NOT_FOUND'
,
19
MESSAGE_DUPLICATED_BY_UUID
=
'MESSAGE_DUPLICATED_BY_UUID'
,
20
MESSAGE_IS_ALREADY_FAVORITE
=
'MESSAGE_IS_ALREADY_FAVORITE'
,
21
MESSAGE_IS_ALREADY_PIN
=
'MESSAGE_IS_ALREADY_PIN'
,
22
MESSAGE_IS_ALREADY_IN_REMINDERS
=
'MESSAGE_IS_ALREADY_IN_REMINDERS'
,
23
MESSAGE_ACCESS_ERROR
=
'MESSAGE_ACCESS_ERROR'
,
24
MESSAGE_TOO_OLD_FOR_DELETION
=
'MESSAGE_TOO_OLD_FOR_DELETION'
,
25
DIFFERENT_CHAT_ERROR
=
'MESSAGES_IN_DIFFERENT_CHAT_ERROR'
,
26
TOO_MANY_MESSAGES
=
'TOO_MANY_MESSAGES'
,
27
SENDING_FAILED
=
'SENDING_FAILED'
,
28
MARK_FAILED
=
'MESSAGE_MARK_FAILED'
,
29
INFORM_USER_CONTEXT_ERROR
=
'INFORM_USER_CONTEXT_ERROR'
,
30
INFORM_VIEWED_ERROR
=
'INFORM_VIEWED_ERROR'
,
31
INFORM_TIMEOUT_ERROR
=
'INFORM_TIMEOUT_ERROR'
,
32
INFORM_USER_STATUS_ERROR
=
'INFORM_USER_STATUS_ERROR'
,
33
REPLY_ERROR
=
'REPLY_ERROR'
,
34
PARAMS_ERROR
=
'PARAMS_ERROR'
,
35
WRONG_UUID
=
'WRONG_UUID'
36
;
37
38
protected
function
loadErrorMessage
(
$code
, $replacements): string
39
{
40
return
Loc::getMessage
(
"ERROR_MESSAGE_{$code}"
, $replacements) ?:
''
;
41
}
42
43
protected
function
loadErrorDescription
(
$code
, $replacements): string
44
{
45
return
Loc::getMessage
(
"ERROR_MESSAGE_{$code}_DESC"
, $replacements) ?:
''
;
46
}
47
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Message\MessageError
Definition
MessageError.php:9
Bitrix\Im\V2\Message\MessageError\MESSAGE_IS_ALREADY_FAVORITE
const MESSAGE_IS_ALREADY_FAVORITE
Definition
MessageError.php:20
Bitrix\Im\V2\Message\MessageError\SENDING_FAILED
const SENDING_FAILED
Definition
MessageError.php:27
Bitrix\Im\V2\Message\MessageError\MARK_FAILED
const MARK_FAILED
Definition
MessageError.php:28
Bitrix\Im\V2\Message\MessageError\MESSAGE_NOT_FOUND
const MESSAGE_NOT_FOUND
Definition
MessageError.php:18
Bitrix\Im\V2\Message\MessageError\DIFFERENT_CHAT_ERROR
const DIFFERENT_CHAT_ERROR
Definition
MessageError.php:25
Bitrix\Im\V2\Message\MessageError\REPLY_ERROR
const REPLY_ERROR
Definition
MessageError.php:33
Bitrix\Im\V2\Message\MessageError\MESSAGE_IS_ALREADY_PIN
const MESSAGE_IS_ALREADY_PIN
Definition
MessageError.php:21
Bitrix\Im\V2\Message\MessageError\WRONG_PARAMETER
const WRONG_PARAMETER
Definition
MessageError.php:11
Bitrix\Im\V2\Message\MessageError\NOTIFY_BUTTONS
const NOTIFY_BUTTONS
Definition
MessageError.php:17
Bitrix\Im\V2\Message\MessageError\INFORM_TIMEOUT_ERROR
const INFORM_TIMEOUT_ERROR
Definition
MessageError.php:31
Bitrix\Im\V2\Message\MessageError\INFORM_USER_STATUS_ERROR
const INFORM_USER_STATUS_ERROR
Definition
MessageError.php:32
Bitrix\Im\V2\Message\MessageError\WRONG_SENDER
const WRONG_SENDER
Definition
MessageError.php:12
Bitrix\Im\V2\Message\MessageError\MESSAGE_IS_ALREADY_IN_REMINDERS
const MESSAGE_IS_ALREADY_IN_REMINDERS
Definition
MessageError.php:22
Bitrix\Im\V2\Message\MessageError\NOTIFY_TYPE
const NOTIFY_TYPE
Definition
MessageError.php:16
Bitrix\Im\V2\Message\MessageError\MESSAGE_DUPLICATED_BY_UUID
const MESSAGE_DUPLICATED_BY_UUID
Definition
MessageError.php:19
Bitrix\Im\V2\Message\MessageError\PARAMS_ERROR
const PARAMS_ERROR
Definition
MessageError.php:34
Bitrix\Im\V2\Message\MessageError\NOTIFY_EVENT
const NOTIFY_EVENT
Definition
MessageError.php:15
Bitrix\Im\V2\Message\MessageError\INFORM_USER_CONTEXT_ERROR
const INFORM_USER_CONTEXT_ERROR
Definition
MessageError.php:29
Bitrix\Im\V2\Message\MessageError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
MessageError.php:38
Bitrix\Im\V2\Message\MessageError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
MessageError.php:43
Bitrix\Im\V2\Message\MessageError\WRONG_UUID
const WRONG_UUID
Definition
MessageError.php:35
Bitrix\Im\V2\Message\MessageError\INFORM_VIEWED_ERROR
const INFORM_VIEWED_ERROR
Definition
MessageError.php:30
Bitrix\Im\V2\Message\MessageError\MESSAGE_TOO_OLD_FOR_DELETION
const MESSAGE_TOO_OLD_FOR_DELETION
Definition
MessageError.php:24
Bitrix\Im\V2\Message\MessageError\TOO_MANY_MESSAGES
const TOO_MANY_MESSAGES
Definition
MessageError.php:26
Bitrix\Im\V2\Message\MessageError\MESSAGE_ACCESS_ERROR
const MESSAGE_ACCESS_ERROR
Definition
MessageError.php:23
Bitrix\Im\V2\Message\MessageError\NOTIFY_MODULE
const NOTIFY_MODULE
Definition
MessageError.php:14
Bitrix\Im\V2\Message\MessageError\EMPTY_MESSAGE
const EMPTY_MESSAGE
Definition
MessageError.php:13
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\Message
Definition
AdditionalMessagePopupItem.php:3
modules
im
lib
V2
Message
MessageError.php
Создано системой
1.10.0