You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/extend/alimsg/msg_sdk/lib/MNS/Exception/BatchSendFailException.php

36 lines
956 B

4 years ago
<?php
namespace AliyunMNS\Exception;
use AliyunMNS\Constants;
use AliyunMNS\Exception\MnsException;
use AliyunMNS\Model\SendMessageResponseItem;
/**
* BatchSend could fail for some messages,
* and BatchSendFailException will be thrown.
* Results for messages are saved in "$sendMessageResponseItems"
*/
class BatchSendFailException extends MnsException
{
protected $sendMessageResponseItems;
public function __construct($code, $message, $previousException = NULL, $requestId = NULL, $hostId = NULL)
{
parent::__construct($code, $message, $previousException, Constants::BATCH_SEND_FAIL, $requestId, $hostId);
$this->sendMessageResponseItems = array();
}
public function addSendMessageResponseItem(SendMessageResponseItem $item)
{
$this->sendMessageResponseItems[] = $item;
}
public function getSendMessageResponseItems()
{
return $this->sendMessageResponseItems;
}
}
?>