references:joomla.framework:utilities:jerror-seterrorhandlingTable of Contents
setErrorHandling
This sets the way that patErrorManager will handle the different error levels. Use this method if you wish to override the default settings. Error handling modes:
You may also set the error handling for several modes at once using PHP‘s bit operations. This function returns true on success, a patError object otherwise. Syntaxmixed setErrorHandling ( $level, $mode, $options )
ExamplesExample JError::setErrorHandling( E_ERROR, 'echo' ); JError::setErrorHandling( E_NOTICE | E_WARNING, 'verbose' ); JError::setErrorHandling( E_ALL ^ E_ERROR ); JError::raise( E_ERROR, '6000', 'File access error!' ); might produce: Result jos-Error: File access error!
where without the call to JError::setErrorHandling, raising this error would have killed the application. |


