52 lines
1.0 KiB
PHP
52 lines
1.0 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Stomp package.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Stomp\Exception;
|
|
|
|
/**
|
|
* Exception that occurs, when a frame receipt was not received.
|
|
*
|
|
*
|
|
* @package Stomp
|
|
* @author Jens Radtke <swefl.oss@fin-sn.de>
|
|
*/
|
|
class MissingReceiptException extends StompException
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $receiptId;
|
|
|
|
/**
|
|
*
|
|
* @param string $receiptId
|
|
*/
|
|
public function __construct($receiptId)
|
|
{
|
|
$this->receiptId = $receiptId;
|
|
parent::__construct(
|
|
sprintf(
|
|
'Missing receipt Frame for id "%s". Maybe the queue server is under heavy load. ' .
|
|
'Try to increase timeouts.',
|
|
$receiptId
|
|
)
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Expected receipt id.
|
|
*
|
|
* @return String
|
|
*/
|
|
public function getReceiptId()
|
|
{
|
|
return $this->receiptId;
|
|
}
|
|
}
|