class ServerConfigurationException in RESTful 7.2
Hierarchy
- class \Drupal\restful\Exception\RestfulException extends \Drupal\restful\Exception\Exception
- class \Drupal\restful\Exception\ServerConfigurationException
Expanded class hierarchy of ServerConfigurationException
23 files declare their use of ServerConfigurationException
- 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.
- EntityFieldQuery.php in src/
Util/ EntityFieldQuery.php - Contains \Drupal\restful\Util\EntityFieldQuery.
- Formatter.php in src/
Plugin/ formatter/ Formatter.php - Contains \Drupal\restful\Plugin\formatter\Formatter
- FormatterHalJson.php in src/
Plugin/ formatter/ FormatterHalJson.php - Contains \Drupal\restful\Plugin\formatter\FormatterHalJson.
File
- src/
Exception/ ServerConfigurationException.php, line 10 - Contains \Drupal\restful\Exception\ServerConfigurationException.
Namespace
Drupal\restful\ExceptionView source
class ServerConfigurationException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 500;
/**
* {@inheritdoc}
*/
protected $description = 'Server configuration error.';
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-server-configuration';
}
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. | |
ServerConfigurationException:: |
protected | property | Defines the HTTP error code. | |
ServerConfigurationException:: |
protected | property |
Exception description. Overrides RestfulException:: |
|
ServerConfigurationException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |