private function buildTrace($exception)
    {
        $_trace = [];
        foreach ($exception->getTrace() as $key => $item) {
            $_trace[$key] = [
                'file' => isset($item['file']) ? $item['file'] : null,
                'line' => isset($item['line']) ? $item['line'] : null,
                'function' => isset($item['function']) ? $item['function'] : null,
                'class' => isset($item['class']) ? $item['class'] : null,
            ];
        }
        
        return $_trace;
    }
private function buildTrace($exception)
    {
        $_trace = [];
        foreach ($exception->getTrace() as $key => $item) {
            $_trace[$key] = [
                'file' => isset($item['file']) ? $item['file'] : null,
                'line' => isset($item['line']) ? $item['line'] : null,
                'function' => isset($item['function']) ? $item['function'] : null,
                'class' => isset($item['class']) ? $item['class'] : null,
            ];
        }
        
        return $_trace;
    }
private function buildTrace ( $ exception ) { $ _trace = [ ] ; foreach ( $ exception -> getTrace ( ) as $ key => $ item ) { $ _trace [ $ key ] = [ 'file' => isset ( $ item [ 'file' ] ) ? $ item [ 'file' ] : null , 'line' => isset ( $ item [ 'line' ] ) ? $ item [ 'line' ] : null , 'function' => isset ( $ item [ 'function' ] ) ? $ item [ 'function' ] : null , 'class' => isset ( $ item [ 'class' ] ) ? $ item [ 'class' ] : null , ] ; } return $ _trace ; }
Build trace array from exception.

@param object $exception
@return array
Build trace array from exception .