You are here

public function SmsMessageResult::setErrorMessage in SMS Framework 2.x

Same name in this branch
  1. 2.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::setErrorMessage()
  2. 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setErrorMessage()
Same name and namespace in other branches
  1. 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::setErrorMessage()
  2. 2.1.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::setErrorMessage()

Sets the error message.

Parameters

string $message: The error message as provided by the gateway API.

Return value

$this Returns this report object for chaining.

Overrides SmsMessageResultInterface::setErrorMessage

File

src/Message/SmsMessageResult.php, line 78

Class

SmsMessageResult
The result of an SMS messaging transaction.

Namespace

Drupal\sms\Message

Code

public function setErrorMessage($message) {
  $this->errorMessage = $message;
  return $this;
}