class Handler extends Handler

Traits

Class Helpers.

Properties

protected array $dontReport

A list of the exception types that should not be reported.

from  Handler
protected $internalDontReport

Methods

Application|ResponseFactory|JsonResponse|RedirectResponse|Response
pjaxError(string $message)

Pjax 请求错误

render(Request $request, Exception $e)

Render an exception into an HTTP response.

from  Handler
int
getStatusCode(Exception $exception)

Checks if the exception implements the HttpExceptionInterface, or returns as generic 500 error code for a server side error.

from  Handler
array
context()

Get the default context variables for logging.

from  Handler
unauthenticated($request, AuthenticationException $exception)

No description

from  Handler
report(Exception $e)

No description

Details

in PjaxTrait at line 26
Application|ResponseFactory|JsonResponse|RedirectResponse|Response pjaxError(string $message)

Pjax 请求错误

Parameters

string $message

Return Value

Application|ResponseFactory|JsonResponse|RedirectResponse|Response

in Handler at line 48
render(Request $request, Exception $e)

Render an exception into an HTTP response.

Parameters

Request $request request
Exception $e exception

Exceptions

Exception

in Handler at line 128
protected int getStatusCode(Exception $exception)

Checks if the exception implements the HttpExceptionInterface, or returns as generic 500 error code for a server side error.

Parameters

Exception $exception exception

Return Value

int

in Handler at line 147
protected array context()

Get the default context variables for logging.

Return Value

array

in Handler at line 152
protected unauthenticated($request, AuthenticationException $exception)

No description

Parameters

$request
AuthenticationException $exception

at line 30
report(Exception $e)

No description

Parameters

Exception $e