API16

JException/setError: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 37: Line 37:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setError
  category=setError
  category=JException
  category=JException
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:37, 25 March 2017

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