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.
36 lines
967 B
36 lines
967 B
4 years ago
|
<?php
|
||
|
namespace AliyunMNS\Exception;
|
||
|
|
||
|
use AliyunMNS\Constants;
|
||
|
use AliyunMNS\Exception\MnsException;
|
||
|
use AliyunMNS\Model\DeleteMessageErrorItem;
|
||
|
|
||
|
/**
|
||
|
* BatchDelete could fail for some receipt handles,
|
||
|
* and BatchDeleteFailException will be thrown.
|
||
|
* All failed receiptHandles are saved in "$deleteMessageErrorItems"
|
||
|
*/
|
||
|
class BatchDeleteFailException extends MnsException
|
||
|
{
|
||
|
protected $deleteMessageErrorItems;
|
||
|
|
||
|
public function __construct($code, $message, $previousException = NULL, $requestId = NULL, $hostId = NULL)
|
||
|
{
|
||
|
parent::__construct($code, $message, $previousException, Constants::BATCH_DELETE_FAIL, $requestId, $hostId);
|
||
|
|
||
|
$this->deleteMessageErrorItems = array();
|
||
|
}
|
||
|
|
||
|
public function addDeleteMessageErrorItem(DeleteMessageErrorItem $item)
|
||
|
{
|
||
|
$this->deleteMessageErrorItems[] = $item;
|
||
|
}
|
||
|
|
||
|
public function getDeleteMessageErrorItems()
|
||
|
{
|
||
|
return $this->deleteMessageErrorItems;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|