1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
BrokerWriteException.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Messenger\Internals\Exception\Broker;
6
7
use Bitrix\Main\Messenger\Entity\MessageBox;
8
use Bitrix\Main\Messenger\Internals\Exception\MessageBoxAwareExceptionInterface;
9
use Bitrix\Main\Messenger\Internals\Exception\MessageBoxAwareExceptionTrait;
10
use Bitrix\Main\Messenger\Internals\Exception\RuntimeException;
11
12
class
BrokerWriteException
extends
RuntimeException
implements
MessageBoxAwareExceptionInterface
13
{
14
use
MessageBoxAwareExceptionTrait
;
15
16
public
function
__construct
(
17
MessageBox
$messageBox,
18
?\Throwable $previous =
null
,
19
string
$message
=
''
,
20
int
$code
= 0,
21
)
22
{
23
parent::__construct(
$message
,
$code
, $previous);
24
25
$this->messageBox = $messageBox;
26
27
$this->message = $this->
buildActualMessage
($this->messageBox);
28
}
29
30
protected
function
buildActualMessage
(
MessageBox
$messageBox): string
31
{
32
return
$this->message
;
33
}
34
}
Bitrix\Main\Messenger\Entity\MessageBox
Определения
MessageBox.php:16
Bitrix\Main\Messenger\Internals\Exception\Broker\BrokerWriteException
Определения
BrokerWriteException.php:13
Bitrix\Main\Messenger\Internals\Exception\Broker\BrokerWriteException\buildActualMessage
buildActualMessage(MessageBox $messageBox)
Определения
BrokerWriteException.php:30
Bitrix\Main\Messenger\Internals\Exception\Broker\BrokerWriteException\__construct
__construct(MessageBox $messageBox, ?\Throwable $previous=null, string $message='', int $code=0,)
Определения
BrokerWriteException.php:16
Bitrix\Main\Messenger\Internals\Exception\RuntimeException
Определения
RuntimeException.php:10
Bitrix\Main\Messenger\Internals\Exception\MessageBoxAwareExceptionInterface
Определения
MessageBoxAwareExceptionInterface.php:10
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
Bitrix\Main\Messenger\Internals\Exception\MessageBoxAwareExceptionTrait
trait MessageBoxAwareExceptionTrait
Определения
MessageBoxAwareExceptionTrait.php:10
$message
$message
Определения
payment.php:8
bitrix
modules
main
lib
Messenger
Internals
Exception
Broker
BrokerWriteException.php
Создано системой
1.14.0