Actions

API17

Difference between revisions of "JError::raiseError"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JError::raiseError|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JError::raiseError|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JError::raiseError ($code, $msg, $info=null)
+
public static function raiseError (
 +
        $code
 +
        $msg
 +
        $info=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object $error The configured  object
object $error The configured  object
+
* '''Defined''' on line 187 of libraries/joomla/error/error.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/error/error.php (line 179)
+
* '''Referenced by'''
* see source code in [[jplatform:error/error.php#cl-179|BitBucket]]
+
** [[JHtml::_/11.1|JHtml::_]]
===Referenced by===
+
** [[JSessionStorageXcache::__construct/11.1|JSessionStorageXcache::__construct]]
* [[JHtml::_/11.1|JHtml::_]]
+
** [[JSessionStorageWincache::__construct/11.1|JSessionStorageWincache::__construct]]
* [[JSessionStorageXcache::__construct/11.1|JSessionStorageXcache::__construct]]
+
** [[JSessionStorageMemcache::__construct/11.1|JSessionStorageMemcache::__construct]]
* [[JSessionStorageWincache::__construct/11.1|JSessionStorageWincache::__construct]]
+
** [[JSessionStorageEaccelerator::__construct/11.1|JSessionStorageEaccelerator::__construct]]
* [[JSessionStorageMemcache::__construct/11.1|JSessionStorageMemcache::__construct]]
+
** [[JSessionStorageApc::__construct/11.1|JSessionStorageApc::__construct]]
* [[JSessionStorageEaccelerator::__construct/11.1|JSessionStorageEaccelerator::__construct]]
+
** [[JModel::__construct/11.1|JModel::__construct]]
* [[JSessionStorageApc::__construct/11.1|JSessionStorageApc::__construct]]
+
** [[JControllerForm::__construct/11.1|JControllerForm::__construct]]
* [[JModel::__construct/11.1|JModel::__construct]]
+
** [[JControllerAdmin::__construct/11.1|JControllerAdmin::__construct]]
* [[JControllerForm::__construct/11.1|JControllerForm::__construct]]
+
** [[JInstaller::abort/11.1|JInstaller::abort]]
* [[JControllerAdmin::__construct/11.1|JControllerAdmin::__construct]]
+
** [[JPath::check/11.1|JPath::check]]
* [[JInstaller::abort/11.1|JInstaller::abort]]
+
** [[JFolder::copy/11.1|JFolder::copy]]
* [[JPath::check/11.1|JPath::check]]
+
** [[JController::createView/11.1|JController::createView]]
* [[JFolder::copy/11.1|JFolder::copy]]
+
** [[JController::execute/11.1|JController::execute]]
* [[JController::createView/11.1|JController::createView]]
+
** [[JArchive::getAdapter/11.1|JArchive::getAdapter]]
* [[JController::execute/11.1|JController::execute]]
+
** [[JFactory::getApplication/11.1|JFactory::getApplication]]
* [[JArchive::getAdapter/11.1|JArchive::getAdapter]]
+
** [[JFormFieldGroupedList::getGroups/11.1|JFormFieldGroupedList::getGroups]]
* [[JFactory::getApplication/11.1|JFactory::getApplication]]
+
** [[JDocument::getInstance/11.1|JDocument::getInstance]]
* [[JFormFieldGroupedList::getGroups/11.1|JFormFieldGroupedList::getGroups]]
+
** [[JDatabase::getInstance/11.1|JDatabase::getInstance]]
* [[JDocument::getInstance/11.1|JDocument::getInstance]]
+
** [[JRouter::getInstance/11.1|JRouter::getInstance]]
* [[JDatabase::getInstance/11.1|JDatabase::getInstance]]
+
** [[JPathway::getInstance/11.1|JPathway::getInstance]]
* [[JRouter::getInstance/11.1|JRouter::getInstance]]
+
** [[JCacheController::getInstance/11.1|JCacheController::getInstance]]
* [[JPathway::getInstance/11.1|JPathway::getInstance]]
+
** [[JApplication::getInstance/11.1|JApplication::getInstance]]
* [[JCacheController::getInstance/11.1|JCacheController::getInstance]]
+
** [[JView::getName/11.1|JView::getName]]
* [[JApplication::getInstance/11.1|JApplication::getInstance]]
+
** [[JModel::getName/11.1|JModel::getName]]
* [[JView::getName/11.1|JView::getName]]
+
** [[JController::getName/11.1|JController::getName]]
* [[JModel::getName/11.1|JModel::getName]]
+
** [[JModel::getTable/11.1|JModel::getTable]]
* [[JController::getName/11.1|JController::getName]]
+
** [[JController::getView/11.1|JController::getView]]
* [[JModel::getTable/11.1|JModel::getTable]]
+
** [[JDocument::loadRenderer/11.1|JDocument::loadRenderer]]
* [[JController::getView/11.1|JController::getView]]
+
** [[JView::loadTemplate/11.1|JView::loadTemplate]]
* [[JDocument::loadRenderer/11.1|JDocument::loadRenderer]]
+
** [[JDatabaseSQLSrv::query/11.1|JDatabaseSQLSrv::query]]
* [[JView::loadTemplate/11.1|JView::loadTemplate]]
+
** [[JDatabaseSQLAzure::query/11.1|JDatabaseSQLAzure::query]]
* [[JDatabaseMySQLi::query/11.1|JDatabaseMySQLi::query]]
+
** [[JDatabaseMySQLi::query/11.1|JDatabaseMySQLi::query]]
* [[JDatabaseMySQL::query/11.1|JDatabaseMySQL::query]]
+
** [[JDatabaseMySQL::query/11.1|JDatabaseMySQL::query]]
* [[JDocumentFeed::render/11.1|JDocumentFeed::render]]
+
** [[JDocumentFeed::render/11.1|JDocumentFeed::render]]
* [[JComponentHelper::renderComponent/11.1|JComponentHelper::renderComponent]]
+
** [[JComponentHelper::renderComponent/11.1|JComponentHelper::renderComponent]]
* [[setErrorHandling/11.1|setErrorHandling]]
+
** [[setErrorHandling/11.1|setErrorHandling]]
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JError::raiseError source code''' on [[jplatform:error/error.php#cl-179|BitBucket]]
 +
* {{JVer|11.1}} Class [[JError/11.1|JError]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Error/11.1|Error]]
 +
* [[JError::raiseError|Other versions of JError::raiseError]]
 +
{{SeeAlso:JError::raiseError}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JError::raiseError|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JError::raiseError|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JError/11.1|JError]]
+
===User contributed notes===
* [[JError::raiseError|Other versions of this method]]
+
{{SeeAlso:JError::raiseError}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 93: Line 96:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JError]][[Category:JError::raiseError]]</noinclude>
 
<noinclude>[[Category:JError]][[Category:JError::raiseError]]</noinclude>

Revision as of 20:52, 27 April 2011

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.

Joomla 11.1 JError::raiseError

Description

Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true.

Description:JError::raiseError [Edit Descripton]

public static function raiseError (
        $code
        $msg
        $info=null
)
Parameter Type Default Description
$code string The application-internal error code for this error
$msg string The error message, which may also be shown the user if need be.
$info mixed null Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).

See also

SeeAlso:JError::raiseError [Edit See Also]

User contributed notes

<CodeExamplesForm />