Skip to content

Kirby 4.2.0

$api->responseForException()

Creates the response array for an exception. Kirby exceptions will have more information

$api->responseForException(Throwable $e): array

Parameters

Name Type Default
$e * Throwable

Return type

array

Parent class

Kirby\Api\Api