function hub_exception_handler ($exceptionInstance) {
// Is it an object and a valid instance?
if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof FrameworkException)) {
- // Get the regular trace
- $trace = $exceptionInstance->getTrace();
-
- // Get 3 call levels
+ // Init variable
$backTrace = '';
- for ($idx = 0; $idx < 3; $idx++) {
- // Copy array for argument analysis and init variable
- $traceArray = $trace[$idx];
+
+ // Get all call levels from backtrace
+ foreach ($exceptionInstance->getTrace() as $idx => $traceArray) {
+ // Init argument string
$argsString = '';
// Convert arguments type into human-readable
basename($traceArray['file']),
$traceArray['line']
);
- } // END - for
+ } // END - foreach
// Construct the message
$message = sprintf("--------------------------------------------------------------------------------