Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
UrlError.php
1<?php
2
4
7
8class UrlError extends Error
9{
10 public const NOT_FOUND = 'URL_NOT_FOUND';
11 public const DELETE_ERROR = 'URL_DELETE_ERROR';
12 public const ACCESS_ERROR = 'URL_ACCESS_ERROR';
13 public const SAVE_BEFORE_MIGRATION_ERROR = 'URL_SAVE_BEFORE_MIGRATION_ERROR';
14
15 protected function loadErrorMessage($code, $replacements): string
16 {
17 return Loc::getMessage("ERROR_URL_{$code}", $replacements) ?: '';
18 }
19
20 protected function loadErrorDescription($code, $replacements): string
21 {
22 return Loc::getMessage("ERROR_URL_{$code}_DESC", $replacements) ?: '';
23 }
24}
loadErrorMessage($code, $replacements)
Definition UrlError.php:15
loadErrorDescription($code, $replacements)
Definition UrlError.php:20
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29