class RestfulForbiddenException in RESTful 7
@file Contains RestfulForbiddenException
Hierarchy
- class \RestfulException extends \Exception
- class \RestfulForbiddenException
Expanded class hierarchy of RestfulForbiddenException
1 string reference to 'RestfulForbiddenException'
- _restful_get_json_from_menu_status in ./
restful.module - Convert a menu status response to a valid JSON.
File
- exceptions/
RestfulForbiddenException.php, line 8 - Contains RestfulForbiddenException
View source
class RestfulForbiddenException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 403;
/**
* {@inheritdoc}
*/
protected $description = 'Forbidden.';
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-forbidden';
}
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. | |
RestfulForbiddenException:: |
protected | property | Defines the HTTP error code. | |
RestfulForbiddenException:: |
protected | property |
Defines the description. Overrides RestfulException:: |
|
RestfulForbiddenException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |