JError::raiseError: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true. | Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function raiseError ( | ||
$code | |||
$msg | |||
$info=null | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 37: | Line 36: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' object $error The configured object | |||
object $error The configured object | * '''Defined''' on line 187 of libraries/joomla/error/error.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/error/error.php | * '''Referenced by''' | ||
** [[API17:JHtml::_|JHtml::_]] | |||
* [[JHtml | ** [[API17:JSessionStorageXcache::__construct|JSessionStorageXcache::__construct]] | ||
* [[JSessionStorageXcache | ** [[API17:JSessionStorageWincache::__construct|JSessionStorageWincache::__construct]] | ||
* [[JSessionStorageWincache | ** [[API17:JSessionStorageMemcache::__construct|JSessionStorageMemcache::__construct]] | ||
* [[JSessionStorageMemcache | ** [[API17:JSessionStorageEaccelerator::__construct|JSessionStorageEaccelerator::__construct]] | ||
* [[JSessionStorageEaccelerator | ** [[API17:JSessionStorageApc::__construct|JSessionStorageApc::__construct]] | ||
* [[JSessionStorageApc | ** [[API17:JModel::__construct|JModel::__construct]] | ||
* [[JModel | ** [[API17:JControllerForm::__construct|JControllerForm::__construct]] | ||
* [[JControllerForm | ** [[API17:JControllerAdmin::__construct|JControllerAdmin::__construct]] | ||
* [[JControllerAdmin | ** [[API17:JInstaller::abort|JInstaller::abort]] | ||
* [[JInstaller | ** [[API17:JPath::check|JPath::check]] | ||
* [[JPath | ** [[API17:JFolder::copy|JFolder::copy]] | ||
* [[JFolder | ** [[API17:JController::createView|JController::createView]] | ||
* [[JController | ** [[API17:JController::execute|JController::execute]] | ||
* [[JController | ** [[API17:JArchive::getAdapter|JArchive::getAdapter]] | ||
* [[JArchive | ** [[API17:JFactory::getApplication|JFactory::getApplication]] | ||
* [[JFactory | ** [[API17:JFormFieldGroupedList::getGroups|JFormFieldGroupedList::getGroups]] | ||
* [[JFormFieldGroupedList | ** [[API17:JDocument::getInstance|JDocument::getInstance]] | ||
* [[JDocument | ** [[API17:JDatabase::getInstance|JDatabase::getInstance]] | ||
* [[JDatabase | ** [[API17:JRouter::getInstance|JRouter::getInstance]] | ||
* [[JRouter | ** [[API17:JPathway::getInstance|JPathway::getInstance]] | ||
* [[JPathway | ** [[API17:JCacheController::getInstance|JCacheController::getInstance]] | ||
* [[JCacheController | ** [[API17:JApplication::getInstance|JApplication::getInstance]] | ||
* [[JApplication | ** [[API17:JView::getName|JView::getName]] | ||
* [[JView | ** [[API17:JModel::getName|JModel::getName]] | ||
* [[JModel | ** [[API17:JController::getName|JController::getName]] | ||
* [[JController | ** [[API17:JModel::getTable|JModel::getTable]] | ||
* [[JModel | ** [[API17:JController::getView|JController::getView]] | ||
* [[JController | ** [[API17:JDocument::loadRenderer|JDocument::loadRenderer]] | ||
* [[JDocument | ** [[API17:JView::loadTemplate|JView::loadTemplate]] | ||
* [[JView | ** [[API17:JDatabaseSQLSrv::query|JDatabaseSQLSrv::query]] | ||
* [[JDatabaseMySQLi | ** [[API17:JDatabaseSQLAzure::query|JDatabaseSQLAzure::query]] | ||
* [[JDatabaseMySQL | ** [[API17:JDatabaseMySQLi::query|JDatabaseMySQLi::query]] | ||
* [[JDocumentFeed | ** [[API17:JDatabaseMySQL::query|JDatabaseMySQL::query]] | ||
* [[JComponentHelper | ** [[API17:JDocumentFeed::render|JDocumentFeed::render]] | ||
* [[setErrorHandling | ** [[API17:JComponentHelper::renderComponent|JComponentHelper::renderComponent]] | ||
** [[setErrorHandling|setErrorHandling]] | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JError::raiseError source code''' on [[jplatform:error/error.php#cl-179|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JError|JError]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Error|Error]] | |||
* | * [[API17:JError::raiseError|Other versions of JError::raiseError]] | ||
* [[JError::raiseError|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JError::raiseError | category=JError::raiseError | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:58, 25 March 2017
JError::raiseError
Description
Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true.
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). |
- Returns object $error The configured object
- Defined on line 187 of libraries/joomla/error/error.php
- Since

- Referenced by
- JHtml::_
- JSessionStorageXcache::__construct
- JSessionStorageWincache::__construct
- JSessionStorageMemcache::__construct
- JSessionStorageEaccelerator::__construct
- JSessionStorageApc::__construct
- JModel::__construct
- JControllerForm::__construct
- JControllerAdmin::__construct
- JInstaller::abort
- JPath::check
- JFolder::copy
- JController::createView
- JController::execute
- JArchive::getAdapter
- JFactory::getApplication
- JFormFieldGroupedList::getGroups
- JDocument::getInstance
- JDatabase::getInstance
- JRouter::getInstance
- JPathway::getInstance
- JCacheController::getInstance
- JApplication::getInstance
- JView::getName
- JModel::getName
- JController::getName
- JModel::getTable
- JController::getView
- JDocument::loadRenderer
- JView::loadTemplate
- JDatabaseSQLSrv::query
- JDatabaseSQLAzure::query
- JDatabaseMySQLi::query
- JDatabaseMySQL::query
- JDocumentFeed::render
- JComponentHelper::renderComponent
- setErrorHandling
See also
JError::raiseError source code on BitBucket
Class JError
Subpackage Error- Other versions of JError::raiseError
User contributed notes
Code Examples