Difference between revisions of "JError"

From Joomla! Documentation

(Bulk upload by Doxiki2)
(Layout updates)
Line 6: Line 6:
===Defined in===
===Defined in===
* see source code in [[jplatform:error/error.php|BitBucket]]
[[Subpackage Error/11.1|Error]]
[[Subpackage Error/11.1|Error]]
Line 102: Line 103:
<source lang="php">jimport( 'joomla.error.error' );</source>
<source lang="php">jimport( 'joomla.error.error' );</source>
===See also===
===See also===
* JError source code in [[jplatform:error/error.php|BitBucket]]
* [[JError|Other versions of this class]]
* [[JError|Other versions of this class]]

Revision as of 17:53, 23 April 2011

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 />