PHP Class yii\web\NotAcceptableHttpException

Use this exception when the client requests a Content-Type that your application cannot return. Note that, according to the HTTP 1.1 specification, you are not required to respond with this status code in this situation.
Inheritance: extends HttpException
Show file Open project: yiisoft/yii2

Public Methods

Method Description
__construct ( string $message = null, integer $code, Exception $previous = null ) Constructor.

Method Details

__construct() public method

Constructor.
public __construct ( string $message = null, integer $code, Exception $previous = null )
$message string error message
$code integer error code
$previous Exception The previous exception used for the exception chaining.