API15

JException/getTrace

From Joomla! Documentation

< API15:JException
Revision as of 11:50, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Method to get the array of the backtrace()

[<! removed edit link to red link >]

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

Syntax[edit]

getTrace()


Returns[edit]

array backtrace

Defined in[edit]

libraries/joomla/error/exception.php

Importing[edit]

jimport( 'joomla.error.exception' );

Source Body[edit]

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[edit]

<CodeExamplesForm />