API16

JError/handleCallback: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Callback error handler Send the error object to a callback method for error handling <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Descripti...
 
m preparing for archive only
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:




<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JError/handleCallback|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JError/handleCallback}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 19: Line 17:
!Description
!Description
|-
|-
|  
| &$error
|  
|  
|  $error  object to handle  
|  $error  object to handle  
Line 44: Line 42:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JError/handleCallback|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JError/handleCallback}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=handleCallback
  category=handleCallback
  category=JError
  category=JError
  category=CodeExample
  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

Callback error handler Send the error object to a callback method for error handling



<! removed transcluded page call, red link never existed >

Syntax

static handleCallback(&$error, $options)
Parameter Name Default Value Description
&$error $error object to handle
$options $options Handler options

Returns

object The exception object

Defined in

libraries/joomla/error/error.php

Importing

jimport( 'joomla.error.error' );

Source Body

public static function handleCallback(&$error, $options)
{
        return call_user_func($options, $error);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples