class BadRequestException in RESTful 7.2
Hierarchy
- class \Drupal\restful\Exception\RestfulException extends \Drupal\restful\Exception\Exception
- class \Drupal\restful\Exception\BadRequestException
Expanded class hierarchy of BadRequestException
21 files declare their use of BadRequestException
- CookieAuthentication.php in src/
Plugin/ authentication/ CookieAuthentication.php - Contains \Drupal\restful\Plugin\authentication\CookieAuthentication
- DataProvider.php in src/
Plugin/ resource/ DataProvider/ DataProvider.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.
- DataProviderDbQuery.php in src/
Plugin/ resource/ DataProvider/ DataProviderDbQuery.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.
- DataProviderEntity.php in src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
- DataProviderEntityDecorator.php in src/
Plugin/ resource/ DataProvider/ DataProviderEntityDecorator.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntityDecorator.
File
- src/
Exception/ BadRequestException.php, line 10 - Contains \Drupal\restful\Exception\BadRequestException.
Namespace
Drupal\restful\ExceptionView source
class BadRequestException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 400;
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-bad-request';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BadRequestException:: |
protected | property | Defines the HTTP error code. | |
BadRequestException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |
|
RestfulException:: |
protected | property | Exception description. | 4 |
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. |