ExceptionResponse
class ExceptionResponse implements Responsable
Properties
| protected string|null | $component | ||
| protected array<string, mixed> | $props | ||
| protected bool | $includeSharedData | ||
| protected string|null | $rootView | ||
| protected null|Middleware> | $middlewareClass |
Methods
Create a new exception response instance.
Render the exception with the given Inertia component.
Use the given Inertia middleware.
Include the middleware shared data.
Set the root view.
Return the response status code.
Resolve the Inertia middleware for the request.
Resolve the Inertia middleware from the route.
Resolve the Inertia middleware from the HTTP kernel.
Details
at line 31
__construct(Throwable $exception, Request $request, Response $response, Router $router, Kernel $kernel)
Create a new exception response instance.
at line 45
ExceptionResponse
render(string $component, array $props = [])
Render the exception with the given Inertia component.
at line 58
ExceptionResponse
usingMiddleware(string $middlewareClass)
Use the given Inertia middleware.
at line 68
ExceptionResponse
withSharedData()
Include the middleware shared data.
at line 78
ExceptionResponse
rootView(string $rootView)
Set the root view.
at line 88
int
statusCode()
Return the response status code.
at line 96
Response
toResponse(Request $request)
Create an HTTP response that represents the object.
at line 131
protected Middleware|null
resolveMiddleware()
Resolve the Inertia middleware for the request.
at line 151
protected string|null
resolveMiddlewareFromRoute()
Resolve the Inertia middleware from the route.
at line 179
protected string|null
resolveMiddlewareFromKernel()
Resolve the Inertia middleware from the HTTP kernel.