API17:JError::raiseError
From Joomla! Documentation
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