Leaf PHP

CustomHandler extends Handler
in package

Abstract implementation of a Handler.

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

$handler  : mixed
$templateHelper  : TemplateHelper
$exception  : Throwable
$inspector  : Inspector
$run  : RunInterface

Methods

__construct()  : void
Constructor.
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()

Constructor.

public __construct([mixed $handler = null ]) : void
Parameters
$handler : mixed = null

handle()

public handle() : int|null
Tags
throws
Exception
Return values
int|null

setException()

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

getException()

protected getException() : Throwable
Return values
Throwable

        
On this page

Search results