class Exception

Methods

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

Create 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.

int
httpStatusCode()

Get the HTTP status code.

previousExceptions()

Get the previous exceptions in the chain.

frames()

Get the exception's frames.

array
frameGroups()

Get the exception's frames grouped by vendor status.

request()

Get the exception's request instance.

array
requestHeaders()

Get the request's headers.

string|null
requestBody()

Get the request's body parameters.

array
applicationRouteContext()

Get the application's route context.

string|null
applicationRouteParametersContext()

Get the application's route parameters context.

array
applicationQueries()

Get the application's SQL queries.

Details

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

Create a new exception renderer instance.

Parameters

FlattenException $exception

The "flattened" exception instance

Request $request
Listener $listener

The exception listener that collects query data

string $basePath

at line 35
string title()

Get the exception title.

Return Value

string

at line 43
string message()

Get the exception message.

Return Value

string

at line 51
string class()

Get the exception class name.

Return Value

string

at line 59
int|string code()

Get the exception code.

Return Value

int|string

at line 67
int httpStatusCode()

Get the HTTP status code.

Return Value

int

at line 77
Collection previousExceptions()

Get the previous exceptions in the chain.

Return Value

Collection

at line 89
Collection frames()

Get the exception's frames.

Return Value

Collection

at line 142
array frameGroups()

Get the exception's frames grouped by vendor status.

Return Value

array

at line 165
Request request()

Get the exception's request instance.

Return Value

Request

at line 175
array requestHeaders()

Get the request's headers.

Return Value

array

at line 185
string|null requestBody()

Get the request's body parameters.

Return Value

string|null

at line 201
array applicationRouteContext()

Get the application's route context.

Return Value

array

at line 217
string|null applicationRouteParametersContext()

Get the application's route parameters context.

Return Value

string|null

at line 232
array applicationQueries()

Get the application's SQL queries.

Return Value

array