class SsrRenderFailed

Traits

Methods

static mixed
dispatch(mixed ...$arguments)

Dispatch the event with the given arguments.

static mixed
dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

static mixed
dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

broadcast(mixed ...$arguments)

Broadcast the event with the given arguments.

__construct(array $page, string $error, SsrErrorType $type = SsrErrorType::Unknown, string|null $hint = null, string|null $browserApi = null, string|null $stack = null, string|null $sourceLocation = null)

Create a new event instance.

string
component()

Get the component name from the page data.

string
url()

Get the URL from the page data.

array
toArray()

Convert the event to an array for logging.

Details

in Dispatchable at line 14
static mixed dispatch(mixed ...$arguments)

Dispatch the event with the given arguments.

Parameters

mixed ...$arguments

Return Value

mixed

in Dispatchable at line 22
static mixed dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

mixed

in Dispatchable at line 30
static mixed dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

mixed

in Dispatchable at line 38
static PendingBroadcast broadcast(mixed ...$arguments)

Broadcast the event with the given arguments.

Parameters

mixed ...$arguments

Return Value

PendingBroadcast

at line 24
__construct(array $page, string $error, SsrErrorType $type = SsrErrorType::Unknown, string|null $hint = null, string|null $browserApi = null, string|null $stack = null, string|null $sourceLocation = null)

Create a new event instance.

Parameters

array $page

The page data that was being rendered

string $error

The error message

SsrErrorType $type

The error type

string|null $hint

A helpful hint on how to fix the error

string|null $browserApi

The browser API that was accessed (if type is browser-api)

string|null $stack

The stack trace

string|null $sourceLocation

The source location (file:line:column) where the error occurred

at line 38
string component()

Get the component name from the page data.

Return Value

string

at line 46
string url()

Get the URL from the page data.

Return Value

string

at line 56
array toArray()

Convert the event to an array for logging.

Return Value

array