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