Documentation

ExceptionHandler extends AbstractHandler
in package

Debug exception handler class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.3.0

Table of Contents

$exceptions  : array<string|int, mixed>
Exceptions
$name  : string
Name of time measurement
$verbose  : bool
Verbose flag
__construct()  : mixed
Constructor
addException()  : self
Add exception
getExceptions()  : array<string|int, mixed>
Get exceptions
getName()  : string
Get name
hasExceptions()  : bool
Determine if the handler has exceptions
prepare()  : array<string|int, mixed>
Prepare handler data for storage
prepareAsString()  : string
Prepare handler data as string
prepareHeaderAsString()  : string
Prepare header string
setName()  : AbstractHandler
Set name

Properties

$exceptions

Exceptions

protected array<string|int, mixed> $exceptions = []

Methods

__construct()

Constructor

public __construct([bool $verbose = false ][, string $name = null ]) : mixed

Instantiate a handler object

Parameters
$verbose : bool = false
$name : string = null
Return values
mixed

addException()

Add exception

public addException(Exception $exception) : self
Parameters
$exception : Exception
Return values
self

getExceptions()

Get exceptions

public getExceptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

Get name

public getName() : string
Return values
string

hasExceptions()

Determine if the handler has exceptions

public hasExceptions() : bool
Return values
bool

prepare()

Prepare handler data for storage

public prepare() : array<string|int, mixed>
Return values
array<string|int, mixed>

prepareAsString()

Prepare handler data as string

public prepareAsString() : string
Return values
string

prepareHeaderAsString()

Prepare header string

public prepareHeaderAsString() : string
Return values
string

Search results