You are here

public function RestfulException::addFieldError in RESTful 7

Add an error per field.

Parameters

string $field_name: The field name.

string $error_message: The error message.

File

exceptions/RestfulException.php, line 133
Contains RestfulException

Class

RestfulException
@file Contains RestfulException

Code

public function addFieldError($field_name, $error_message) {
  $this->fieldErrors[$field_name][] = $error_message;
}