Difference between revisions of "JError/getError"
From Joomla! Documentation
< API15:JError
(New page: ===Description===
Method for retrieving the last exception object in the error stack
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JError/getError|...) |
m (removing red link to edit, no existant pages) |
||
Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 48: | Line 48: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 63: | Line 63: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API15]] |
Revision as of 11:48, 12 May 2013
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 for retrieving the last exception object in the error stack
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
& getError($unset=false)
Parameter Name | Default Value | Description |
---|---|---|
$unset | false |
Returns[edit]
mixed Last exception object in the error stack or boolean false if none exist
Defined in[edit]
libraries/joomla/error/error.php
Importing[edit]
jimport( 'joomla.error.error' );
Source Body[edit]
function & getError($unset = false)
{
if (!isset($GLOBALS['_JERROR_STACK'][0])) {
$false = false;
return $false;
}
if ($unset) {
$error = array_shift($GLOBALS['_JERROR_STACK']);
} else {
$error = &$GLOBALS['_JERROR_STACK'][0];
}
return $error;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />