ExceptionHandler
extends AbstractHandler
in package
Debug exception handler class
Tags
Table of Contents
Properties
- $exceptions : array<string|int, mixed>
- Exceptions
- $name : string|null
- Name of time measurement
- $verbose : bool
- Verbose flag
Methods
- __construct() : mixed
- Constructor
- addException() : ExceptionHandler
- Add exception
- getExceptions() : array<string|int, mixed>
- Get exceptions
- getName() : string|null
- 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
= []
$name
Name of time measurement
protected
string|null
$name
= null
$verbose
Verbose flag
protected
bool
$verbose
= false
Methods
__construct()
Constructor
public
__construct([bool $verbose = false ][, string|null $name = null ]) : mixed
Instantiate a handler object
Parameters
- $verbose : bool = false
- $name : string|null = null
addException()
Add exception
public
addException(Exception $exception) : ExceptionHandler
Parameters
- $exception : Exception
Return values
ExceptionHandlergetExceptions()
Get exceptions
public
getExceptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get name
public
getName() : string|null
Return values
string|nullhasExceptions()
Determine if the handler has exceptions
public
hasExceptions() : bool
Return values
boolprepare()
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
stringprepareHeaderAsString()
Prepare header string
public
prepareHeaderAsString() : string
Return values
stringsetName()
Set name
public
setName(string $name) : AbstractHandler
Parameters
- $name : string