API16

JError/customErrorHandler: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 36: Line 36:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=customErrorHandler
  category=customErrorHandler
  category=JError
  category=JError
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:36, 25 March 2017

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

Syntax

static customErrorHandler($level, $msg)
Parameter Name Default Value Description
$level
$msg

Defined in

libraries/joomla/error/error.php

Importing

jimport( 'joomla.error.error' );

Source Body

public static function customErrorHandler($level, $msg)
{
        JError::raise($level, '', $msg);
}


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

Examples

Code Examples