API16

JError/addToStack: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m clean up
Line 2: Line 2:
Method to add non-JError thrown JExceptions to the JError stack for debugging purposes
Method to add non-JError thrown JExceptions to the JError stack for debugging purposes


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>


<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >
Line 37: Line 35:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >



Revision as of 13:56, 24 March 2017

Description

Method to add non-JError thrown JExceptions to the JError stack for debugging purposes


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

Syntax

static addToStack(JException &$e)
Parameter Name Default Value Description

Returns

void

Defined in

libraries/joomla/error/error.php

Importing

jimport( 'joomla.error.error' );

Source Body

public static function addToStack(JException &$e) {
        JError::$stack[0][] = &$e;
}


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

Examples

<CodeExamplesForm />