Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
TaskError.php
1<?php
2
4
7
8class 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}
loadErrorMessage($code, $replacements)
Definition TaskError.php:17
loadErrorDescription($code, $replacements)
Definition TaskError.php:22
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29