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

void
__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
defaultFrame()

Get the first "non-vendor" frame index.

Frame>
frames()

Get the exception's frames.

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

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

Creates a new exception renderer instance.

Parameters

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

Return Value

void

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 defaultFrame()

Get the first "non-vendor" frame index.

Return Value

int

Frame> frames()

Get the exception's frames.

Return Value

Frame>

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.