class Exception (View source)

Properties

protected FlattenException $exception

The "flattened" exception instance.

protected Request $request

The current request instance.

protected Listener $listener

The exception listener instance.

protected string $basePath

The application's base path.

Methods

__construct(FlattenException $exception, Request $request, Listener $listener, string $basePath)

Creates a new exception renderer instance.

string
title()

Get the exception title.

string
message()

Get the exception message.

string
class()

Get the exception class name.

int|string
code()

Get the exception code.

Frame>
frames()

Get the exception's frames.

frameGroups()

Get the exception's frames grouped by vendor status.

request()

Get the exception's request instance.

array<string,string>
requestHeaders()

Get the request's headers.

string|null
requestBody()

Get the request's body parameters.

array<string,string>
applicationRouteContext()

Get the application's route context.

array<string,mixed>|null
applicationRouteParametersContext()

Get the application's route parameters context.

applicationQueries()

Get the application's SQL queries.

Details

__construct(FlattenException $exception, Request $request, Listener $listener, string $basePath)

Creates a new exception renderer instance.

Parameters

FlattenException $exception
Request $request
Listener $listener
string $basePath

string title()

Get the exception title.

Return Value

string

string message()

Get the exception message.

Return Value

string

string class()

Get the exception class name.

Return Value

string

int|string code()

Get the exception code.

Return Value

int|string

Frame> frames()

Get the exception's frames.

Return Value

Frame>

frameGroups()

Get the exception's frames grouped by vendor status.

Request request()

Get the exception's request instance.

Return Value

Request

array<string,string> requestHeaders()

Get the request's headers.

Return Value

array<string,string>

string|null requestBody()

Get the request's body parameters.

Return Value

string|null

array<string,string> applicationRouteContext()

Get the application's route context.

Return Value

array<string,string>

array<string,mixed>|null applicationRouteParametersContext()

Get the application's route parameters context.

Return Value

array<string,mixed>|null

applicationQueries()

Get the application's SQL queries.