Skip to content

Kirby 6.0.0

JsonResponse::exception()

Renders the error response for a Kirby exception

JsonResponse::exception(Exception $exception): Response

Parameters

Name Type Default
$exceptionrequired Kirby\Exception\Exception no default value

Return type

Kirby\Http\Response

Parent class

Kirby\Panel\Response\JsonResponse