JError/attachHandler: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method that attaches the error handler to JError
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JError/attachHandler|Edit Descript... |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Method that attaches the error handler to JError | Method that attaches the error handler to JError | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 25: | Line 23: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=attachHandler | category=attachHandler | ||
category=JError | category=JError | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Latest revision as of 01:36, 25 March 2017
Description
Method that attaches the error handler to JError
<! removed transcluded page call, red link never existed >
Syntax
static attachHandler()
Defined in
libraries/joomla/error/error.php
Importing
jimport( 'joomla.error.error' );
Source Body
public static function attachHandler()
{
set_error_handler(array('JError', 'customErrorHandler'));
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples