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 23
__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 34
string title()

Get the exception title.

Return Value

string

at line 42
string message()

Get the exception message.

Return Value

string

at line 50
string class()

Get the exception class name.

Return Value

string

at line 58
int|string code()

Get the exception code.

Return Value

int|string

at line 66
int httpStatusCode()

Get the HTTP status code.

Return Value

int

at line 76
Collection previousExceptions()

Get the previous exceptions in the chain.

Return Value

Collection

at line 88
Collection frames()

Get the exception's frames.

Return Value

Collection

at line 141
array frameGroups()

Get the exception's frames grouped by vendor status.

Return Value

array

at line 164
Request request()

Get the exception's request instance.

Return Value

Request

at line 174
array requestHeaders()

Get the request's headers.

Return Value

array

at line 184
string|null requestBody()

Get the request's body parameters.

Return Value

string|null

at line 200
array applicationRouteContext()

Get the application's route context.

Return Value

array

at line 216
string|null applicationRouteParametersContext()

Get the application's route parameters context.

Return Value

string|null

at line 231
array applicationQueries()

Get the application's SQL queries.

Return Value

array