You are here

public function MaestroGeneralException::__construct in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Engine/Exception/MaestroGeneralException.php \Drupal\maestro\Engine\Exception\MaestroGeneralException::__construct()

Constructs an MaestroGeneralException.

Parameters

string $condition: The condition in which this exception ocurred.

File

src/Engine/Exception/MaestroGeneralException.php, line 18

Class

MaestroGeneralException
Exception thrown during general errors in the engine.

Namespace

Drupal\maestro\Engine\Exception

Code

public function __construct($condition) {
  $message = sprintf('General Maestro Error: %s', $condition);
  parent::__construct($message);
}