Actions

API15

JException/getTrace

From Joomla! Documentation

< API15:JException
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Method to get the array of the backtrace()

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

getTrace()


Returns

array backtrace

Defined in

libraries/joomla/error/exception.php

Importing

jimport( 'joomla.error.exception' );

Source Body

function getTrace()
{
        if (isset( $this ) && isset( $this->backtrace )) {
                $trace = &$this->backtrace;
        } else {
                $trace = function_exists( 'debug_backtrace' ) ? debug_backtrace() : null;
        }
 
        return $trace;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />