final class BootstrapErrorResponder (View source)

Shapes an unhandled throwable into an HTTP response for the front controller.

This is the last line of defence in index.php, so handle() must never throw: the two fallible operations it performs, reading configuration and rendering the 404 page, are individually guarded.

Methods

__construct(ConfigurationInterface $config, Closure|null $notFoundRenderer = null)

No description

void
handle(Throwable $e)

No description

Details

__construct(ConfigurationInterface $config, Closure|null $notFoundRenderer = null)

No description

Parameters

ConfigurationInterface $config

Configuration, which may itself be the thing that failed to load

Closure|null $notFoundRenderer

Renders the HTML 404 body; defaults to NotFoundController

void handle(Throwable $e)

No description

Parameters

Throwable $e

Return Value

void