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.

int
httpStatusCode()

Get the HTTP status code.

Collection<int, static>
previousExceptions()

Get the previous exceptions in the chain.

Frame>
frames()

Get the exception's frames.

Frame>}>
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.

array<int, array{connectionName: string, time: float, sql: string}>
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

int httpStatusCode()

Get the HTTP status code.

Return Value

int

Collection<int, static> previousExceptions()

Get the previous exceptions in the chain.

Return Value

Collection<int, static>

Frame> frames()

Get the exception's frames.

Return Value

Frame>

Frame>}> frameGroups()

Get the exception's frames grouped by vendor status.

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

array<int, array{connectionName: string, time: float, sql: string}> applicationQueries()

Get the application's SQL queries.

Return Value

array<int, array{connectionName: string, time: float, sql: string}>

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.