API16

API16:JObject/setError

From Joomla! Documentation

Description

Add an error message.



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);
}



Examples

Code Examples