1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
NotifyError.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Notification;
4
5use Bitrix\Im\V2\Error;
6use Bitrix\Main\Localization\Loc;
7
8class NotifyError extends Error
9{
10 public const GROUP_NOT_FOUND = 'GROUP_NOT_FOUND';
11 public const CONDITION_NOT_FOUND = 'CONDITION_NOT_FOUND';
12 public const CONDITION_ALREADY_EXISTS = 'CONDITION_ALREADY_EXISTS';
13 public const GROUP_CREATE_ERROR = 'GROUP_CREATE_ERROR';
14
15 protected function loadErrorMessage($code, $replacements): string
16 {
17 return match ($code)
18 {
19 self::GROUP_NOT_FOUND => Loc::getMessage('ERROR_NOTIFY_GROUP_NOT_FOUND') ?? '',
20 self::CONDITION_NOT_FOUND => Loc::getMessage('ERROR_NOTIFY_CONDITION_NOT_FOUND') ?? '',
21 self::CONDITION_ALREADY_EXISTS => Loc::getMessage('ERROR_NOTIFY_CONDITION_ALREADY_EXISTS') ?? '',
22 self::GROUP_CREATE_ERROR => Loc::getMessage('ERROR_NOTIFY_GROUP_CREATE_ERROR') ?? '',
23 default => '',
24 };
25 }
26
27 protected function loadErrorDescription($code, $replacements): string
28 {
29 return '';
30 }
31}
loadErrorMessage($code, $replacements)
Определения NotifyError.php:15
loadErrorDescription($code, $replacements)
Определения NotifyError.php:27
Определения error.php:15
$code
Определения error.php:17