API17

API17:JError

From Joomla! Documentation

Revision as of 22:53, 23 April 2011 by Doxiki2 (talk | contribs) (Layout updates)

[Edit Descripton] Template:Description:JError

Defined in

libraries/joomla/error/error.php

Subpackage

Error

Extends

Extended by

Methods

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 .
customErrorHandler
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.
renderBacktrace
setErrorHandling Method to set the way the will handle different error levels.
throwError
translateErrorLevel Translate an error level integer to a human readable string e.g.

Importing

jimport( 'joomla.error.error' );

See also

Template:SeeAlso:JError [Edit See Also]

Examples

<CodeExamplesForm />