public function ResultSet::addError in Google Search Appliance 8
Adds error.
Parameters
string $message: Error.
string $type: Error type.
Return value
$this
File
- src/
SearchResults/ ResultSet.php, line 136
Class
- ResultSet
- Defines a value object for a search response.
Namespace
Drupal\google_appliance\SearchResultsCode
public function addError($message, $type = self::ERROR_PARSING) {
$this->errors[$type][] = $message;
return $this;
}