\Whoops\HandlerCallbackHandler

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

Summary

Methods
Properties
Constants
setRun()
setInspector()
setException()
__construct()
handle()
No public properties found
DONE
LAST_HANDLER
QUIT
getRun()
getInspector()
getException()
$callable
N/A
No private methods found
$run
$inspector
$exception
N/A

Constants

DONE

DONE = 16

LAST_HANDLER

LAST_HANDLER = 32

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

Execution will continue.

QUIT

QUIT = 48

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

Properties

$callable

$callable : callable

Type

callable

$exception

$exception : \Throwable

Type

\Throwable

Methods

setException()

setException(\Throwable  $exception) : void

Parameters

\Throwable $exception

__construct()

__construct(callable  $callable) 

Parameters

callable $callable

Throws

\InvalidArgumentException

If argument is not callable

handle()

handle() : integer|null

Returns

integer|null

getException()

getException() : \Throwable

Returns

\Throwable