JError/1.5

From Joomla! Documentation
Jump to: navigation, search

Joomla 1.5 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]

Methods

Visibility Method name Description
public attachHandler Method that attaches the error handler to .
public customErrorHandler
public detachHandler Method that dettaches the error handler from .
public customErrorPage Display a custom error page and exit gracefully.
public getError Method for retrieving the last exception object in the error stack.
public getErrorHandling Method to get the current error handler settings for a specified error level.
public getErrors Method for retrieving the exception stack.
public handleCallback Callback error handler
public handleDie Die error handler
public handleEcho Echo error handler
public handleIgnore Ignore error handler
public handleLog Log error handler
public handleMessage Message error handler
public handleVerbose Verbose error handler
public isError Method to determine if a value is an exception object.
public raise Create a new object given the passed arguments.
public raiseError Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true.
public raiseNotice Wrapper method for the method with predefined error level of E_NOTICE and backtrace set to false.
public raiseWarning Wrapper method for the method with predefined error level of E_WARNING and backtrace set to false.
public registerErrorLevel Method to register a new error level for handling errors.
public setErrorHandling Method to set the way the will handle different error levels.
public 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

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox