Exception\PreconditionFailedHttpException (Component\HttpKernel)

Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException

class PreconditionFailedHttpException extends HttpException

PreconditionFailedHttpException.

Methods

__construct(string $message = null, Exception $previous = null, int $code)

Constructor.

integer getStatusCode()

Returns the status code.

from HttpException
array getHeaders()

Returns response headers.

from HttpException

Details

public __construct(string $message = null, Exception $previous = null, int $code)

Constructor.

Parameters

string $message The internal exception message
Exception $previous The previous exception
int $code The internal exception code

public integer getStatusCode()

Returns the status code.

Return Value

integer An HTTP response status code

public array getHeaders()

Returns response headers.

Return Value

array Response headers
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部