|
|
| Line 1: |
Line 1: |
| − | '''JError''' is inspired in design and concept by patErrorManager [http://www.php-tools.net]. It is the Joomla's Error Handling Class, and should be used by third party developers to handle errors.
| + | This class is available in the following Joomla versions:- |
| − | | + | <splist showpath=notparent /> |
| − | ===Availability===
| + | <noinclude>[[Category:Framework]][[Category:JError]]</noinclude> |
| − | {{JVer|1.5}} {{JVer|1.6}}
| + | |
| − | | + | |
| − | ===Defined in===
| + | |
| − | /joomla/error/error.php
| + | |
| − | | + | |
| − | ===Methods===
| + | |
| − | {| class="wikitable"
| + | |
| − | |-
| + | |
| − | !Method name
| + | |
| − | !Description
| + | |
| − | |-
| + | |
| − | |[[JError/attachHandler|attachHandler]]
| + | |
| − | |Method that attaches the error handler to JError
| + | |
| − | |-
| + | |
| − | |[[JError/customErrorHandler|customErrorHandler]]
| + | |
| − | |Method that defines a custom Error Handler
| + | |
| − | |-
| + | |
| − | |[[JError/customErrorPage|customErrorPage]]
| + | |
| − | |Display a custom error page and exit gracefully
| + | |
| − | |-
| + | |
| − | |[[JError/detachHandler|detachHandler]]
| + | |
| − | |Method that dettaches the error handler from JError
| + | |
| − | |-
| + | |
| − | |[[JError/getError|getError]]
| + | |
| − | |Method for retrieving the last exception object in the error stack
| + | |
| − | |-
| + | |
| − | |[[JError/getErrorHandling|getErrorHandling]]
| + | |
| − | |Method to get the current error handler settings for a specified error level.
| + | |
| − | |-
| + | |
| − | |[[JError/getErrors|getErrors]]
| + | |
| − | |Method for retrieving the exception stack
| + | |
| − | |-
| + | |
| − | |[[JError/handleCallback|handleCallback]]
| + | |
| − | |Callback error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleDie|handleDie]]
| + | |
| − | |Die error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleEcho|handleEcho]]
| + | |
| − | |Echo error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleIgnore|handleIgnore]]
| + | |
| − | |Ignore error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleLog|handleLog]]
| + | |
| − | |Log error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleMessage|handleMessage]]
| + | |
| − | |Message error handler
| + | |
| − | |-
| + | |
| − | |[[JError/handleVerbose|handleVerbose]]
| + | |
| − | |Verbose error handler
| + | |
| − | |-
| + | |
| − | |[[JError/isError|isError]]
| + | |
| − | |Method to determine if a value is an exception object. This check supports both JException and PHP5 Exception objects
| + | |
| − | |-
| + | |
| − | |[[JError/raise|raise]]
| + | |
| − | |Create a new JException object given the passed arguments
| + | |
| − | |-
| + | |
| − | |[[JError/raiseError|raiseError]]
| + | |
| − | |Wrapper method for the raise() method with predefined error level of E_ERROR and backtrace set to true.
| + | |
| − | |-
| + | |
| − | |[[JError/raiseNotice|raiseNotice]]
| + | |
| − | |Wrapper method for the raise() method with predefined error level of E_NOTICE and backtrace set to false.
| + | |
| − | |-
| + | |
| − | |[[JError/raiseWarning|raiseWarning]]
| + | |
| − | |Wrapper method for the raise() method with predefined error level of E_WARNING and backtrace set to false.
| + | |
| − | |-
| + | |
| − | |[[JError/registerErrorLevel|registerErrorLevel]]
| + | |
| − | |Method to register a new error level for handling errors
| + | |
| − | |-
| + | |
| − | |[[JError/setErrorHandling|setErrorHandling]]
| + | |
| − | |Method to set the way the JError will handle different error levels. Use this if you want to override the default settings.
| + | |
| − | |-
| + | |
| − | |[[JError/translateErrorLevel|translateErrorLevel]]
| + | |
| − | |Translate an error level integer to a human readable string e.g. E_ERROR will be translated to 'Error'
| + | |
| − | |}
| + | |
| − | ===Importing===
| + | |
| − | <source lang="php">jimport( 'joomla.error.error' );</source> | + | |
| − | | + | |
| − | ===See also===
| + | |
| − | * [http://api.joomla.org/Joomla-Framework/Error/JError.html JError on api.joomla.org]
| + | |
| − | <noinclude>[[Category:Development]][[Category:Framework]][[Category:JError]]</noinclude> | + | |