/**
  *
  * @param Frame $frame
  * @param string $expectedInfo
  */
 public function __construct(Frame $frame, $expectedInfo)
 {
     $this->frame = $frame;
     parent::__construct(sprintf('Unexpected response received. %s', $expectedInfo));
 }
 /**
  * InvalidStateException constructor.
  *
  * @param IStateful $state
  * @param string $method
  */
 public function __construct(IStateful $state, $method)
 {
     parent::__construct(sprintf('"%s" is not allowed in "%s".', $method, get_class($state)));
 }
 /**
  *
  * @param Frame $frame
  */
 public function __construct(Frame $frame)
 {
     $this->frame = $frame;
     parent::__construct(sprintf('Error "%s"', $frame->headers['message']));
 }
 /**
  * @param Protocol $detectedProtocol
  * @param string $expectedProtocol
  */
 public function __construct(Protocol $detectedProtocol, $expectedProtocol)
 {
     parent::__construct(sprintf('The current broker (%s) is no %s.', get_class($detectedProtocol), $expectedProtocol));
 }
 /**
  *
  * @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));
 }