ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • RescueEvent

Class RescueEvent

Event class for the Exception:rescue event type.

Third parties may use this event to provide a response for the exception.

ICanBoogie\Event
┗ ICanBoogie\Exception\RescueEvent
Namespace: ICanBoogie\Exception
Located at RescueEvent.php

Methods summary

protected get_response( void ) : ICanBoogie\HTTP\Response|null

Returns

ICanBoogie\HTTP\Response|null
protected set_response( ICanBoogie\HTTP\Response $response = null )

Parameters

$response
protected get_exception( void ) : Exception

Returns

Exception
protected set_exception( Exception $exception )

Parameters

$exception
protected get_request( void ) : ICanBoogie\HTTP\Request

Returns

ICanBoogie\HTTP\Request
public __construct( Exception & $target, ICanBoogie\HTTP\Request $request, ICanBoogie\HTTP\Response & $response = null )

The event is constructed with the type rescue.

The event is constructed with the type rescue.

Parameters

$target
$request
The request.
$response
Reference to the response.

Constants summary

TYPE : string
'rescue'

Properties summary

Magic properties

public $exception : Exception
public $response : ICanBoogie\HTTP\Response
public read-only $request : ICanBoogie\HTTP\Request
HTTP master – Check on GitHub – API documentation generated by ApiGen