JDocumentError/setError
From Joomla! Documentation
< API16:JDocumentErrorRevision as of 22:06, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
Revision as of 22:06, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The "API16" 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]
Set error object
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
setError($error)
Parameter Name | Default Value | Description |
---|---|---|
$error | $error Error object to set |
Returns[edit]
boolean True on success
Defined in[edit]
libraries/joomla/document/error/error.php
Importing[edit]
jimport( 'joomla.document.error.error' );
Source Body[edit]
function setError($error)
{
if (JError::isError($error)) {
$this->_error = & $error;
return true;
} else {
return false;
}
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />