class UnprocessableEntityException in RESTful 7.2
Hierarchy
- class \Drupal\restful\Exception\RestfulException extends \Drupal\restful\Exception\Exception
- class \Drupal\restful\Exception\UnprocessableEntityException
Expanded class hierarchy of UnprocessableEntityException
7 files declare their use of UnprocessableEntityException
- DataProvider.php in src/
Plugin/ resource/ DataProvider/ DataProvider.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.
- DataProviderEntity.php in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
- DataProviderVariable.php in modules/
restful_example/ src/ Plugin/ resource/ variables/ DataProviderVariable.php - Contains \Drupal\restful_example\Plugin\resource\variables\DataProviderVariable.
- ResourceFieldEntity.php in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity
- Response.php in src/
Http/ Response.php - Contains \Drupal\restful\Http\Response.
File
- src/
Exception/ UnprocessableEntityException.php, line 10 - Contains \Drupal\restful\Exception\UnprocessableEntityException.
Namespace
Drupal\restful\ExceptionView source
class UnprocessableEntityException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 422;
/**
* {@inheritdoc}
*/
protected $description = 'Unprocessable Entity; Validation errors.';
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-unprocessable-entity';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestfulException:: |
protected | property | Array keyed by the field name, and array of error messages as value. | |
RestfulException:: |
protected | property | Array of extra headers to set when throwing an exception. | |
RestfulException:: |
public | function | Add an error per field. | |
RestfulException:: |
final public | function | Gets the description of the exception. | |
RestfulException:: |
public | function | Return an array with all the errors. | |
RestfulException:: |
public | function | Get the associative array of headers. | |
RestfulException:: |
public | function | Get the URL to the error for the particular case. | |
RestfulException:: |
public | function | Return a string to the common problem type. | |
RestfulException:: |
public | function | Set a header. | |
UnprocessableEntityException:: |
protected | property | Defines the HTTP error code. | |
UnprocessableEntityException:: |
protected | property |
Exception description. Overrides RestfulException:: |
|
UnprocessableEntityException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |