JError/getErrorHandling: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 40: | Line 40: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getErrorHandling | category=getErrorHandling | ||
category=JError | category=JError | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:36, 25 March 2017
Description
Method to get the current error handler settings for a specified error level.
<! removed transcluded page call, red link never existed >
Syntax
static getErrorHandling($level)
| Parameter Name | Default Value | Description |
|---|---|---|
| $level | $level The error level to retrieve. This can be any of PHP's own error levels, e.g. E_ALL, E_NOTICE... |
Returns
array All error handling details
Defined in
libraries/joomla/error/error.php
Importing
jimport( 'joomla.error.error' );
Source Body
public static function getErrorHandling($level)
{
return JError::$handlers[$level];
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples