API16:JObject/setError
From Joomla! Documentation
Description
Add an error message.
Template:Description:JObject/setError
Syntax
setError($error)
| Parameter Name | Default Value | Description |
|---|---|---|
| $error | $error Error message. |
Defined in
libraries/joomla/base/object.php
Importing
jimport( 'joomla.base.object' );
Source Body
public function setError($error)
{
array_push($this->_errors, $error);
}
[Edit See Also] Template:SeeAlso:JObject/setError
Examples
<CodeExamplesForm />