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