From Joomla! Documentation

Revision as of 15:49, 20 April 2011 by Doxiki2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

[Edit Descripton] 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.

Defined in





Extended by


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


jimport( 'joomla.error.error' );

See also

SeeAlso:JError [Edit See Also]


<CodeExamplesForm />