Class RescueEvent
Event class for the ICanBoogie\Routing\Dispatcher::rescue
event.
Event hooks may use this event to rescue a route by providing a suitable response, or replace the exception to throw if the rescue fails.
- ICanBoogie\Event
- ┗ ICanBoogie\Routing\Route\RescueEvent
Methods summary
public
__construct( ICanBoogie\Routing\Route
$target
, Exception & $exception
, ICanBoogie\HTTP\Request $request
, ICanBoogie\HTTP\Response|null & $response
)
The event is constructed with the type rescue
.