PHP Класс yii\web\UnsupportedMediaTypeHttpException

Use this exception when the client sends data in a format that your application does not understand. For example, you would throw this exception if the client POSTs XML data to an action or controller that only accepts JSON.
С версии: 2.0
Автор: Dan Schmidt ([email protected])
Наследование: extends HttpException
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $message = null, integer $code, Exception $previous = null ) Constructor.

Описание методов

__construct() публичный метод

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.