Pantheon\Terminus\Exceptions\TerminusException::__construct PHP Method

__construct() public method

Object constructor. Sets context array as replacements property
public __construct ( string $message = null, array $replacements = [], integer $code )
$message string Message to send when throwing the exception
$replacements array Context array to interpolate into message
$code integer Exit code
    public function __construct($message = null, $replacements = array(), $code = 0)
    {
        $this->replacements = $replacements;
        $this->raw_message = $message;
        parent::__construct($this->interpolateString($message, $replacements), $code);
    }