====== setError ====== {#JAPI Joomla.Framework Application JController::setError #} Sets the error message. This error message can later be retrieved using the [[jcontroller-geterror|JController->getError()]] method. This method will return the error message that was set (directly from the class property, so if for some reason something goes wrong, the return value will indicate this). ===== Syntax ===== string setError ( **$message** ) | **$message** | string | is a string containing the error message. | ===== Examples ===== $controller->setError( 'Not going to happen!' ); echo $controller->getError(); might produce Not going to happen! ---- ~~DISCUSSION~~