You are here

public function BackupMigrateException::__construct in Backup and Migrate 5.0.x

Construct the exception. Note: The message is NOT binary safe.

@link http://php.net/manual/en/exception.construct.php

Parameters

string $message: [optional] The Exception message to throw.

array $replacement: [optional] Untranslatable values to replace into the string.

int $code: [optional] The Exception code.

File

src/Core/Exception/BackupMigrateException.php, line 28

Class

BackupMigrateException
@package Drupal\backup_migrate\Core\Exception

Namespace

Drupal\backup_migrate\Core\Exception

Code

public function __construct($message = NULL, array $replacement = [], $code = 0) {
  $this->replacement = $replacement;
  $this->messageRaw = $message;

  // Send the replaced message to the parent constructor to act as normal in
  // most cases.
  parent::__construct(strtr($message, $replacement), $code);
}