\Phile\Plugin\Phile\ErrorHandlerDevelopment

Class Development

this is the development error handler for PhileCMS inspired by the debug exception handler of TYPO3 we create this handler. due to incompatibility of the two licenses (GPL and MIT) we have written the entire code again. we thank the core team of TYPO3 for the great idea.

Summary

Methods
Properties
Constants
handleError()
handleException()
No public properties found
No constants found
displayDeveloperOutput()
createBacktrace()
receiveCodeFragment()
linkClass()
linkClassMethod()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

handleError()

handleError(int $errno, string $errstr, string $errfile, int $errline, array $errcontext) : boolean

handle the error

Parameters

int $errno
string $errstr
string $errfile
int $errline
array $errcontext

Returns

boolean

handleException()

handleException(\Exception $exception) : mixed

handle all exceptions

Parameters

\Exception $exception

Returns

mixed

displayDeveloperOutput()

displayDeveloperOutput(\Exception $exception)

show a nice looking and human readable developer output

Parameters

\Exception $exception

createBacktrace()

createBacktrace(array $traces) : string

creates a human readable backtrace

Parameters

array $traces

Returns

string

receiveCodeFragment()

receiveCodeFragment(mixed $filename, mixed $lineNumber, mixed $linesBefore, mixed $linesAfter) : string

receive a code fragment from file

Parameters

mixed $filename
mixed $lineNumber
mixed $linesBefore
mixed $linesAfter

Returns

string

linkClass()

linkClass(mixed $class) : string

link the class name to the API or return the class name

Parameters

mixed $class

Returns

string

linkClassMethod()

linkClassMethod(mixed $class, mixed $method) : string

link the method name to the API or return the method name

Parameters

mixed $class
mixed $method

Returns

string