Actions

API16

JException/setError

From Joomla! Documentation

< API16:JException
Replacement filing cabinet.png
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

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />