API15

API15:JException/getTrace

From Joomla! Documentation

Revision as of 22:20, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Method to get the array of the backtrace() <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<no...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Method to get the array of the backtrace()

[Edit Descripton]

Template:Description:JException/getTrace

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;
}

[Edit See Also] Template:SeeAlso:JException/getTrace

Examples

<CodeExamplesForm />