CMS 2.0
This commit is contained in:
21
vendor/php-mqtt/client/src/Exceptions/ProtocolViolationException.php
vendored
Normal file
21
vendor/php-mqtt/client/src/Exceptions/ProtocolViolationException.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMqtt\Client\Exceptions;
|
||||
|
||||
/**
|
||||
* Exception to be thrown if an MQTT client encountered a protocol violation.
|
||||
*
|
||||
* @package PhpMqtt\Client\Exceptions
|
||||
*/
|
||||
class ProtocolViolationException extends MqttClientException
|
||||
{
|
||||
/**
|
||||
* ProtocolViolationException constructor.
|
||||
*/
|
||||
public function __construct(string $error)
|
||||
{
|
||||
parent::__construct(sprintf('Protocol violation: %s.', $error));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user