/** * Method to get the formatted backtrace information * * @final * @access public * @return string Formated string of trace * @since 1.5 */ function getTraceAsString() { //Get the trace array $trace = JException::getTrace(); $result = ''; foreach ($trace as $back) { if (isset($back['file']) && strpos($back['file'], 'error.php') === false) { $result .= '<br />' . $back['file'] . ':' . $back['line']; } } return $result; }