Table of Contents

getError

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JController Method getError Reference getError() Never Work in Progress

Gets the error message.

This will return the value that was last set using the setError method. If the error has not been set, null will be returned.

Syntax

string getError ()

Examples

Example

$controller = new JController();
$controller->setError( 'Just an example' );
echo $controller->getError();

might produce

Result

Just an example