JError
From Joomla! Documentation
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.
JError[edit]
Description[edit]
Template:Description:JError [Edit Descripton]
Note[edit]
JError is deprecated use PHP exceptions instead
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | addToStack | Method to add non-JError thrown JExceptions to the stack for debugging purposes. |
public static | attachHandler | Method that attaches the error handler to . |
public static | customErrorHandler | |
public static | customErrorPage | Display a custom error page and exit gracefully. |
public static | detachHandler | Method that detaches the error handler from . |
public static | getError | Method for retrieving the last exception object in the error stack. |
public static | getErrorHandling | Method to get the current error handler settings for a specified error level. |
public static | getErrors | Method for retrieving the exception stack. |
public static | handleCallback | Callback error handler |
public static | handleDie | Die error handler |
public static | handleEcho | Echo error handler |
public static | handleIgnore | Ignore error handler |
public static | handleLog | Log error handler |
public static | handleMessage | Message error handler |
public static | handleVerbose | Verbose error handler |
public static | isError | Method to determine if a value is an exception object. |
public static | raise | Create a new object given the passed arguments. |
public static | raiseError | Wrapper method for the method with predefined error level of E_ERROR and backtrace set to true. |
public static | raiseNotice | Wrapper method for the method with predefined error level of E_NOTICE and backtrace set to false. |
public static | raiseWarning | Wrapper method for the method with predefined error level of E_WARNING and backtrace set to false. |
public static | registerErrorLevel | Method to register a new error level for handling errors. |
public static | renderBacktrace | |
public static | setErrorHandling | Method to set the way the will handle different error levels. |
public static | throwError | |
public static | translateErrorLevel | Translate an error level integer to a human readable string e.g. |
- Defined in libraries/joomla/error/error.php
Importing[edit]
jimport( 'joomla.error.error' );
See also[edit]
- JError source code on BitBucket
- Subpackage Error
- Other versions of JError
- Display error messages and notices
Template:SeeAlso:JError [Edit See Also]