public function __construct($var) { $message = "{$this->message} - \${$var} cannot be set."; parent::__construct($this->message, $this->code, NULL); }