Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
invalidmessageexception.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Exception
;
4
5
use
Bitrix\Calendar\Core\Queue\Interfaces\Message
;
6
7
class
InvalidMessageException
extends
Exception
8
{
15
public
static
function
assertMessageInstanceOf
(
Message
$message,
string
$class): void
16
{
17
if
(!$message instanceof $class) {
18
throw
new
static
(sprintf(
19
'The message must be an instance of %s but it is %s.'
,
20
$class,
21
get_class($message)
22
));
23
}
24
}
25
}
Bitrix\Calendar\Core\Queue\Exception\Exception
Definition
exception.php:5
Bitrix\Calendar\Core\Queue\Exception\InvalidMessageException
Definition
invalidmessageexception.php:8
Bitrix\Calendar\Core\Queue\Exception\InvalidMessageException\assertMessageInstanceOf
static assertMessageInstanceOf(Message $message, string $class)
Definition
invalidmessageexception.php:15
Bitrix\Calendar\Core\Queue\Interfaces\Message
Definition
message.php:16
Bitrix\Calendar\Core\Queue\Exception
Definition
deliverydelaynotsupportedexception.php:2
modules
calendar
lib
core
queue
exception
invalidmessageexception.php
Создано системой
1.10.0