Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ImportError.php
1<?php
2
4
7
8class ImportError extends Error
9{
10 public const ACCESS_ERROR = 'IMPORT_ACCESS_ERROR';
11 public const FILE_ACCESS_ERROR = 'IMPORT_FILE_ACCESS_ERROR';
12 public const UPDATE_MESSAGE_ERROR = 'IMPORT_UPDATE_MESSAGE_ERROR';
13 public const ADD_MESSAGE_ERROR = 'IMPORT_ADD_MESSAGE_ERROR';
14 public const DATETIME_FORMAT_ERROR = 'IMPORT_DATETIME_ERROR';
15 public const FILE_NOT_FOUND = 'IMPORT_FILE_NOT_FOUND';
16 public const DATETIME_FORMAT_ERROR_FIRST = 'IMPORT_DATETIME_FORMAT_ERROR_FIRST';
17 public const CHRONOLOGY_ERROR = 'IMPORT_CHRONOLOGY_ERROR';
18 public const PRIVATE_CHAT_COUNT_USERS_ERROR = 'IMPORT_PRIVATE_CHAT_COUNT_USERS_ERROR';
19
20 protected function loadErrorMessage($code, $replacements): string
21 {
22 return Loc::getMessage("ERROR_IMPORT_{$code}", $replacements) ?: '';
23 }
24
25 protected function loadErrorDescription($code, $replacements): string
26 {
27 return Loc::getMessage("ERROR_IMPORT_{$code}_DESC", $replacements) ?: '';
28 }
29}
loadErrorMessage($code, $replacements)
loadErrorDescription($code, $replacements)
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29