Actions

API17

Difference between revisions of "JError::raiseError"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
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
+
* '''Referenced by'''
===Referenced by===
+
** [[JHtml::_/11.1|JHtml::_]]
* [[JHtml/_/11.1|JHtml::_]]
+
** [[JSessionStorageXcache::__construct/11.1|JSessionStorageXcache::__construct]]
* [[JSessionStorageXcache/__construct/11.1|JSessionStorageXcache::__construct]]
+
** [[JSessionStorageWincache::__construct/11.1|JSessionStorageWincache::__construct]]
* [[JSessionStorageWincache/__construct/11.1|JSessionStorageWincache::__construct]]
+
** [[JSessionStorageMemcache::__construct/11.1|JSessionStorageMemcache::__construct]]
* [[JSessionStorageMemcache/__construct/11.1|JSessionStorageMemcache::__construct]]
+
** [[JSessionStorageEaccelerator::__construct/11.1|JSessionStorageEaccelerator::__construct]]
* [[JSessionStorageEaccelerator/__construct/11.1|JSessionStorageEaccelerator::__construct]]
+
** [[JSessionStorageApc::__construct/11.1|JSessionStorageApc::__construct]]
* [[JSessionStorageApc/__construct/11.1|JSessionStorageApc::__construct]]
+
** [[JModel::__construct/11.1|JModel::__construct]]
* [[JModel/__construct/11.1|JModel::__construct]]
+
** [[JControllerForm::__construct/11.1|JControllerForm::__construct]]
* [[JControllerForm/__construct/11.1|JControllerForm::__construct]]
+
** [[JControllerAdmin::__construct/11.1|JControllerAdmin::__construct]]
* [[JControllerAdmin/__construct/11.1|JControllerAdmin::__construct]]
+
** [[JInstaller::abort/11.1|JInstaller::abort]]
* [[JInstaller/abort/11.1|JInstaller::abort]]
+
** [[JPath::check/11.1|JPath::check]]
* [[JPath/check/11.1|JPath::check]]
+
** [[JFolder::copy/11.1|JFolder::copy]]
* [[JFolder/copy/11.1|JFolder::copy]]
+
** [[JController::createView/11.1|JController::createView]]
* [[JController/createView/11.1|JController::createView]]
+
** [[JController::execute/11.1|JController::execute]]
* [[JController/execute/11.1|JController::execute]]
+
** [[JArchive::getAdapter/11.1|JArchive::getAdapter]]
* [[JArchive/getAdapter/11.1|JArchive::getAdapter]]
+
** [[JFactory::getApplication/11.1|JFactory::getApplication]]
* [[JFactory/getApplication/11.1|JFactory::getApplication]]
+
** [[JFormFieldGroupedList::getGroups/11.1|JFormFieldGroupedList::getGroups]]
* [[JFormFieldGroupedList/getGroups/11.1|JFormFieldGroupedList::getGroups]]
+
** [[JDocument::getInstance/11.1|JDocument::getInstance]]
* [[JDocument/getInstance/11.1|JDocument::getInstance]]
+
** [[JDatabase::getInstance/11.1|JDatabase::getInstance]]
* [[JDatabase/getInstance/11.1|JDatabase::getInstance]]
+
** [[JRouter::getInstance/11.1|JRouter::getInstance]]
* [[JRouter/getInstance/11.1|JRouter::getInstance]]
+
** [[JPathway::getInstance/11.1|JPathway::getInstance]]
* [[JPathway/getInstance/11.1|JPathway::getInstance]]
+
** [[JCacheController::getInstance/11.1|JCacheController::getInstance]]
* [[JCacheController/getInstance/11.1|JCacheController::getInstance]]
+
** [[JApplication::getInstance/11.1|JApplication::getInstance]]
* [[JApplication/getInstance/11.1|JApplication::getInstance]]
+
** [[JView::getName/11.1|JView::getName]]
* [[JView/getName/11.1|JView::getName]]
+
** [[JModel::getName/11.1|JModel::getName]]
* [[JModel/getName/11.1|JModel::getName]]
+
** [[JController::getName/11.1|JController::getName]]
* [[JController/getName/11.1|JController::getName]]
+
** [[JModel::getTable/11.1|JModel::getTable]]
* [[JModel/getTable/11.1|JModel::getTable]]
+
** [[JController::getView/11.1|JController::getView]]
* [[JController/getView/11.1|JController::getView]]
+
** [[JDocument::loadRenderer/11.1|JDocument::loadRenderer]]
* [[JDocument/loadRenderer/11.1|JDocument::loadRenderer]]
+
** [[JView::loadTemplate/11.1|JView::loadTemplate]]
* [[JView/loadTemplate/11.1|JView::loadTemplate]]
+
** [[JDatabaseSQLSrv::query/11.1|JDatabaseSQLSrv::query]]
* [[JDatabaseMySQLi/query/11.1|JDatabaseMySQLi::query]]
+
** [[JDatabaseSQLAzure::query/11.1|JDatabaseSQLAzure::query]]
* [[JDatabaseMySQL/query/11.1|JDatabaseMySQL::query]]
+
** [[JDatabaseMySQLi::query/11.1|JDatabaseMySQLi::query]]
* [[JDocumentFeed/render/11.1|JDocumentFeed::render]]
+
** [[JDatabaseMySQL::query/11.1|JDatabaseMySQL::query]]
* [[JComponentHelper/renderComponent/11.1|JComponentHelper::renderComponent]]
+
** [[JDocumentFeed::render/11.1|JDocumentFeed::render]]
* [[setErrorHandling/11.1|setErrorHandling]]
+
** [[JComponentHelper::renderComponent/11.1|JComponentHelper::renderComponent]]
 +
** [[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 92: 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 />