Leaf PHP

CallbackHandler extends Handler
in package

Wrapper for Closures passed as handlers. Can be used directly, or will be instantiated automagically by Whoops\Run if passed to Run::pushHandler

Table of Contents

Constants

DONE  = 0x10
LAST_HANDLER  = 0x20
The Handler has handled the Throwable in some way, and wishes to skip any other Handler.
QUIT  = 0x30
The Handler has handled the Throwable in some way, and wishes to quit/stop execution

Properties

$callable  : callable
$exception  : Throwable
$inspector  : Inspector
$run  : RunInterface

Methods

__construct()  : mixed
handle()  : int|null
setException()  : void
setInspector()  : void
setRun()  : void
getException()  : Throwable
getInspector()  : Inspector
getRun()  : RunInterface

Constants

LAST_HANDLER

The Handler has handled the Throwable in some way, and wishes to skip any other Handler.

public mixed LAST_HANDLER = 0x20

Execution will continue.

QUIT

The Handler has handled the Throwable in some way, and wishes to quit/stop execution

public mixed QUIT = 0x30

Properties

$exception

private Throwable $exception

Methods

__construct()

public __construct(callable $callable) : mixed
Parameters
$callable : callable
Tags
throws
InvalidArgumentException

If argument is not callable

setException()

public setException(Throwable $exception) : void
Parameters
$exception : Throwable

getException()

protected getException() : Throwable
Return values
Throwable

        
On this page

Search results