public function __construct($rejectValue) { $this->rejectValue = $rejectValue; parent::__construct("Promise rejected with non-exception"); }