You are here

public function ConnectorException::__construct in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 src/ConnectorException.php \Drupal\acquia_connector\ConnectorException::__construct()
  2. 8 src/ConnectorException.php \Drupal\acquia_connector\ConnectorException::__construct()

ConnectorException constructor.

Parameters

string $message: Exception message.

int $code: Exception code.

array $custom: Exception messages as key => value.

\Exception|null $previous: The previous exception used for the exception chaining. Since 5.3.0.

File

src/ConnectorException.php, line 32

Class

ConnectorException
Produce an exception for certain cases in the connector.

Namespace

Drupal\acquia_connector

Code

public function __construct($message, $code = 0, array $custom = [], \Exception $previous = NULL) {
  parent::__construct($message, $code, $previous);
  $this->custom = $custom;
}