Actions

API17

Difference between revisions of "JError"

From Joomla! Documentation

m (template fix for categorisation)
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{deprecated|when=1.6|from=1.7,11.1|old=JError|link=Exceptions and Logging in Joomla 1.7 and Joomla Platform 11.1|new=PHP exceptions instead}}__NOTOC__
 
=={{JVer|11.1}} JError==
 
=={{JVer|11.1}} JError==
 
===Description===
 
===Description===
Line 7: Line 7:
 
</span>
 
</span>
 
===Note===
 
===Note===
JError is deprecated use [[JLog]] instead
+
JError is deprecated use PHP exceptions instead
  
 
===Methods===
 
===Methods===
Line 131: Line 131:
 
* {{JVer|11.1}} Subpackage [[Subpackage Error/11.1|Error]]
 
* {{JVer|11.1}} Subpackage [[Subpackage Error/11.1|Error]]
 
* [[JError|Other versions of JError]]
 
* [[JError|Other versions of JError]]
 +
* [[Display_error_messages_and_notices|Display error messages and notices]]
 
{{SeeAlso:JError}}
 
{{SeeAlso:JError}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 136: Line 137:
 
</span>
 
</span>
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
 
<dpl>
 
noresultsheader=\n
 
category=JError
 
category=CodeExample
 
category=ClassExample
 
include=*
 
namespace=CodeExample
 
format= ,,,
 
</dpl>
 
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JError]]</noinclude>
 

Revision as of 14:05, 10 September 2012

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JError

Description

JError is inspired in design and concept by patErrorManager [1]. It is Joomla's Error Handling Class and should be used by third party developers to handle errors. [Edit Descripton]

Note

JError is deprecated use PHP exceptions instead

Methods

Visibility Method name Description
public static addToStack Method to add non-JError thrown JExceptions to the stack for debugging purposes.
public static attachHandler Method that attaches the error handler to .
public static customErrorHandler
public static customErrorPage Display a custom error page and exit gracefully.
public static detachHandler Method that detaches the error handler from .
public static getError Method for retrieving the last exception object in the error stack.
public static getErrorHandling Method to get the current error handler settings for a specified error level.
public static getErrors Method for retrieving the exception stack.
public static handleCallback Callback error handler
public static handleDie Die error handler
public static handleEcho Echo error handler
public static handleIgnore Ignore error handler
public static handleLog Log error handler
public static handleMessage Message error handler
public static handleVerbose Verbose error handler
public static isError Method to determine if a value is an exception object.
public static raise Create a new object given the passed arguments.
public static raiseError Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true.
public static raiseNotice Wrapper method for the method with predefined error level of E_NOTICE and backtrace set to false.
public static raiseWarning Wrapper method for the method with predefined error level of E_WARNING and backtrace set to false.
public static registerErrorLevel Method to register a new error level for handling errors.
public static renderBacktrace
public static setErrorHandling Method to set the way the will handle different error levels.
public static throwError
public static translateErrorLevel Translate an error level integer to a human readable string e.g.
  • Defined in libraries/joomla/error/error.php

Importing

jimport( 'joomla.error.error' );

See also

SeeAlso:JError [Edit See Also]

User contributed notes