public function RestfulException::addFieldError in RESTful 7.2
Add an error per field.
Parameters
string $field_name: The field name.
string $error_message: The error message.
File
- src/
Exception/ RestfulException.php, line 137 - Contains \Drupal\restful\Exception\RestfulException.
Class
Namespace
Drupal\restful\ExceptionCode
public function addFieldError($field_name, $error_message) {
$this->fieldErrors[$field_name][] = $error_message;
}