API16:JException/setError
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Add an error message
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] SeeAlso:JException/setError
Examples
<CodeExamplesForm />
