class FloodException in RESTful 7.2
Hierarchy
- class \Drupal\restful\Exception\RestfulException extends \Drupal\restful\Exception\Exception
- class \Drupal\restful\Exception\FloodException
Expanded class hierarchy of FloodException
4 files declare their use of FloodException
- BasicAuthentication.php in src/
Plugin/ authentication/ BasicAuthentication.php - Contains \Drupal\restful\Plugin\authentication\BasicAuthentication
- RateLimitManager.php in src/
RateLimit/ RateLimitManager.php - Contains \Drupal\restful\RateLimit\RateLimitManager
- RateLimitManagerInterface.php in src/
RateLimit/ RateLimitManagerInterface.php - Contains \Drupal\restful\RateLimit\RateLimitManagerInterface
- RestfulRateLimitTestCase.test in tests/
RestfulRateLimitTestCase.test - Contains RestfulRateLimitTestCase.
File
- src/
Exception/ FloodException.php, line 10 - Contains \Drupal\restful\Exception\FloodException.
Namespace
Drupal\restful\ExceptionView source
class FloodException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 429;
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-flood';
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FloodException:: |
protected | property | Defines the HTTP error code. | |
FloodException:: |
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. |