JError/addToStack: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| 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 | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
| Line 37: | Line 35: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=addToStack | category=addToStack | ||
category=JError | category=JError | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:36, 25 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
Code Examples