class RestfulUnsupportedMediaTypeException in RESTful 7
@file Contains RestfulUnsupportedMediaTypeException
Hierarchy
- class \RestfulException extends \Exception
Expanded class hierarchy of RestfulUnsupportedMediaTypeException
File
- exceptions/
RestfulUnsupportedMediaTypeException.php, line 8 - Contains RestfulUnsupportedMediaTypeException
View source
class RestfulUnsupportedMediaTypeException extends RestfulException {
/**
* Defines the HTTP error code.
*
* @var int
*/
protected $code = 415;
/**
* {@inheritdoc}
*/
protected $description = 'Unsupported Media Type.';
/**
* {@inheritdoc}
*/
protected $instance = 'help/restful/problem-instances-unsupported-media-type';
}
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. | |
RestfulUnsupportedMediaTypeException:: |
protected | property | Defines the HTTP error code. | |
RestfulUnsupportedMediaTypeException:: |
protected | property |
Defines the description. Overrides RestfulException:: |
|
RestfulUnsupportedMediaTypeException:: |
protected | property |
Defines the instance resource. Overrides RestfulException:: |