<?php

declare(strict_types=1);

namespace PhpWA\Exception;

final class OutgoingMessagePendingException extends PhpWAException
{
      private $messageId;
    public function __construct(string $messageId, \Throwable $previous)
    {
        $this->messageId = $messageId;
        parent::__construct('Outgoing message is durable but could not be sent; replay it by message ID.', 0, $previous);
    }
    public function messageId(): string { return $this->messageId; }
}
