PHP Класс Exceptions\Http\Client\NotAcceptableException

Never throw an exception at the user, always catch it can synthesize it to a correct html response with appropriate headers. You can use the constants and accessor to get HTML values to return.
Автор: Mathieu Dumoulin aka CrazyCodr ([email protected])
Наследование: extends ClientErrorException
Показать файл Открыть проект

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

Метод Описание
__construct ( string $message = self::HTTP_MESSAGE, integer $code = self::HTTP_CODE, null $previous = null ) NotAcceptableException constructor.
getHttpCode ( )
getHttpMessage ( )

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

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

NotAcceptableException constructor.
public __construct ( string $message = self::HTTP_MESSAGE, integer $code = self::HTTP_CODE, null $previous = null )
$message string Error message (HTTP) that defines this exception
$code integer Error code (HTTP) that defines this exception
$previous null Inner/Previous exception that triggered this exception

getHttpCode() публичный статический Метод

public static getHttpCode ( )

getHttpMessage() публичный статический Метод

public static getHttpMessage ( )