You are here

public function MessageWrapper::setApiResponseException in Sparkpost email 8.2

Sets the API response exception.

Parameters

\SparkPost\SparkPostException $sparkPostException: The exception.

Overrides MessageWrapperInterface::setApiResponseException

2 calls to MessageWrapper::setApiResponseException()
MessageWrapper::sendMessage in src/MessageWrapper.php
Sends the message.
QueuedMessageWrapper::__construct in modules/sparkpost_requeue/src/QueuedMessageWrapper.php
QueuedMessageWrapper constructor.

File

src/MessageWrapper.php, line 73

Class

MessageWrapper
Message wrapper class.

Namespace

Drupal\sparkpost

Code

public function setApiResponseException(SparkPostException $sparkPostException) {
  $this->apiResponseException = $sparkPostException;
}