API17

JError::raiseError: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
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.  


{{Description:JError::raiseError}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JError::raiseError|Edit Descripton]]<nowiki>]</nowiki>
</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 36:
|-
|-
|}
|}
===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===
** [[API17:JHtml::_|JHtml::_]]
* [[JHtml/_/11.1|JHtml::_]]
** [[API17:JSessionStorageXcache::__construct|JSessionStorageXcache::__construct]]
* [[JSessionStorageXcache/__construct/11.1|JSessionStorageXcache::__construct]]
** [[API17:JSessionStorageWincache::__construct|JSessionStorageWincache::__construct]]
* [[JSessionStorageWincache/__construct/11.1|JSessionStorageWincache::__construct]]
** [[API17:JSessionStorageMemcache::__construct|JSessionStorageMemcache::__construct]]
* [[JSessionStorageMemcache/__construct/11.1|JSessionStorageMemcache::__construct]]
** [[API17:JSessionStorageEaccelerator::__construct|JSessionStorageEaccelerator::__construct]]
* [[JSessionStorageEaccelerator/__construct/11.1|JSessionStorageEaccelerator::__construct]]
** [[API17:JSessionStorageApc::__construct|JSessionStorageApc::__construct]]
* [[JSessionStorageApc/__construct/11.1|JSessionStorageApc::__construct]]
** [[API17:JModel::__construct|JModel::__construct]]
* [[JModel/__construct/11.1|JModel::__construct]]
** [[API17:JControllerForm::__construct|JControllerForm::__construct]]
* [[JControllerForm/__construct/11.1|JControllerForm::__construct]]
** [[API17:JControllerAdmin::__construct|JControllerAdmin::__construct]]
* [[JControllerAdmin/__construct/11.1|JControllerAdmin::__construct]]
** [[API17:JInstaller::abort|JInstaller::abort]]
* [[JInstaller/abort/11.1|JInstaller::abort]]
** [[API17:JPath::check|JPath::check]]
* [[JPath/check/11.1|JPath::check]]
** [[API17:JFolder::copy|JFolder::copy]]
* [[JFolder/copy/11.1|JFolder::copy]]
** [[API17:JController::createView|JController::createView]]
* [[JController/createView/11.1|JController::createView]]
** [[API17:JController::execute|JController::execute]]
* [[JController/execute/11.1|JController::execute]]
** [[API17:JArchive::getAdapter|JArchive::getAdapter]]
* [[JArchive/getAdapter/11.1|JArchive::getAdapter]]
** [[API17:JFactory::getApplication|JFactory::getApplication]]
* [[JFactory/getApplication/11.1|JFactory::getApplication]]
** [[API17:JFormFieldGroupedList::getGroups|JFormFieldGroupedList::getGroups]]
* [[JFormFieldGroupedList/getGroups/11.1|JFormFieldGroupedList::getGroups]]
** [[API17:JDocument::getInstance|JDocument::getInstance]]
* [[JDocument/getInstance/11.1|JDocument::getInstance]]
** [[API17:JDatabase::getInstance|JDatabase::getInstance]]
* [[JDatabase/getInstance/11.1|JDatabase::getInstance]]
** [[API17:JRouter::getInstance|JRouter::getInstance]]
* [[JRouter/getInstance/11.1|JRouter::getInstance]]
** [[API17:JPathway::getInstance|JPathway::getInstance]]
* [[JPathway/getInstance/11.1|JPathway::getInstance]]
** [[API17:JCacheController::getInstance|JCacheController::getInstance]]
* [[JCacheController/getInstance/11.1|JCacheController::getInstance]]
** [[API17:JApplication::getInstance|JApplication::getInstance]]
* [[JApplication/getInstance/11.1|JApplication::getInstance]]
** [[API17:JView::getName|JView::getName]]
* [[JView/getName/11.1|JView::getName]]
** [[API17:JModel::getName|JModel::getName]]
* [[JModel/getName/11.1|JModel::getName]]
** [[API17:JController::getName|JController::getName]]
* [[JController/getName/11.1|JController::getName]]
** [[API17:JModel::getTable|JModel::getTable]]
* [[JModel/getTable/11.1|JModel::getTable]]
** [[API17:JController::getView|JController::getView]]
* [[JController/getView/11.1|JController::getView]]
** [[API17:JDocument::loadRenderer|JDocument::loadRenderer]]
* [[JDocument/loadRenderer/11.1|JDocument::loadRenderer]]
** [[API17:JView::loadTemplate|JView::loadTemplate]]
* [[JView/loadTemplate/11.1|JView::loadTemplate]]
** [[API17:JDatabaseSQLSrv::query|JDatabaseSQLSrv::query]]
* [[JDatabaseMySQLi/query/11.1|JDatabaseMySQLi::query]]
** [[API17:JDatabaseSQLAzure::query|JDatabaseSQLAzure::query]]
* [[JDatabaseMySQL/query/11.1|JDatabaseMySQL::query]]
** [[API17:JDatabaseMySQLi::query|JDatabaseMySQLi::query]]
* [[JDocumentFeed/render/11.1|JDocumentFeed::render]]
** [[API17:JDatabaseMySQL::query|JDatabaseMySQL::query]]
* [[JComponentHelper/renderComponent/11.1|JComponentHelper::renderComponent]]
** [[API17:JDocumentFeed::render|JDocumentFeed::render]]
* [[setErrorHandling/11.1|setErrorHandling]]
** [[API17:JComponentHelper::renderComponent|JComponentHelper::renderComponent]]
** [[setErrorHandling|setErrorHandling]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JError::raiseError source code''' on [[jplatform:error/error.php#cl-179|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JError::raiseError|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JError|JError]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Error|Error]]
* [[JError/11.1|JError]]
* [[API17:JError::raiseError|Other versions of JError::raiseError]]
* [[JError::raiseError|Other versions of this method]]
 
{{SeeAlso:JError::raiseError}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JError::raiseError
category=JError::raiseError
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JError]][[Category:JError::raiseError]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:58, 25 March 2017

Joomla 11.1 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).

See also


User contributed notes

Code Examples