class UnauthorizedException in RESTful 7.2
Hierarchy
- class \Drupal\restful\Exception\RestfulException extends \Drupal\restful\Exception\Exception
- class \Drupal\restful\Exception\UnauthorizedException
Expanded class hierarchy of UnauthorizedException
8 files declare their use of UnauthorizedException
- AuthenticationManager.php in src/
Authentication/ AuthenticationManager.php - Contains \Drupal\restful\Authentication\AuthenticationManager
- AuthenticationManagerInterface.php in src/
Authentication/ AuthenticationManagerInterface.php - Contains \Drupal\restful\Authentication\AuthenticationManagerInterface
- DataProviderPlug.php in src/
Plugin/ resource/ DataProvider/ DataProviderPlug.php - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderPlug.
- FilesUpload__1_0.php in src/
Plugin/ resource/ FilesUpload__1_0.php - Contains \Drupal\restful\Plugin\resource\FilesUpload__1_0
- OAuth2ServerAuthentication.php in src/
Plugin/ authentication/ OAuth2ServerAuthentication.php
File
- src/
Exception/ UnauthorizedException.php, line 10 - Contains \Drupal\restful\Exception\UnauthorizedException.
Namespace
Drupal\restful\ExceptionView source
class UnauthorizedException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 401;
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-unauthorized';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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. | |
UnauthorizedException:: |
protected | property | Defines the HTTP error code. | |
UnauthorizedException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |