API16:JException/setError
From Joomla! Documentation
Description
Add an error message
<! removed transcluded page call, red link never existed >
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);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples