Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
CallError.php
1<?php
2
3namespace Bitrix\Im\V2\Call;
4
7
8class CallError extends Error
9{
10 public const
11 ZOOM_ACTIVE_ERROR = 'ZOOM_ACTIVE_ERROR',
12 ZOOM_AVAILABLE_ERROR = 'ZOOM_AVAILABLE_ERROR',
13 ZOOM_CONNECTED_ERROR = 'ZOOM_CONNECTED_ERROR',
14 ZOOM_CREATE_ERROR = 'ZOOM_CREATE_ERROR',
15 CALL_NOT_FOUNT = 'CALL_NOT_FOUNT',
16 SEND_PULL_ERROR = 'SEND_PULL_ERROR'
17 ;
18
19 protected function loadErrorMessage($code, $replacements): string
20 {
21 return Loc::getMessage("ERROR_CALL_{$code}", $replacements) ?: '';
22 }
23
24 protected function loadErrorDescription($code, $replacements): string
25 {
26 return Loc::getMessage("ERROR_CALL_{$code}_DESC", $replacements) ?: '';
27 }
28}
loadErrorMessage($code, $replacements)
Definition CallError.php:19
loadErrorDescription($code, $replacements)
Definition CallError.php:24
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29