public function __construct($field) { $this->field = $field; parent::__construct('The condition field with the name "' . $this->field . '" could not be found.', 0); }