API17

JError

From Joomla! Documentation

Revision as of 17:53, 23 April 2011 by Doxiki2 (talk | contribs) (Layout updates)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton] Template:Description:JError

Defined in[edit]

libraries/joomla/error/error.php

Subpackage[edit]

Error

Extends[edit]

Extended by[edit]

Methods[edit]

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[edit]

jimport( 'joomla.error.error' );

See also[edit]

Template:SeeAlso:JError [Edit See Also]

Examples[edit]

<CodeExamplesForm />