You are here

protected function WSConnectorBase::setError in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnectorBase.php \Drupal\wsdata\Plugin\WSConnectorBase::setError()

Setter for the connector errors.

3 calls to WSConnectorBase::setError()
WSConnectorLocalFile::call in src/Plugin/WSConnector/WSConnectorLocalFile.php
Make the connector call.
WSConnectorSimpleHTTP::call in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Make the connector call.
WSConnectorSOAP::call in src/Plugin/WSConnector/WSConnectorSOAP.php
Make the connector call.

File

src/Plugin/WSConnectorBase.php, line 164

Class

WSConnectorBase
Base class for Wsconnector plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

protected function setError($code, $message) {
  $this->error = [
    'code' => $code,
    'message' => $message,
  ];
}