Manual:$wgExceptionHooks/de-formal

From Linux Web Expert

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.
<translate> Extensions</translate>: $wgExceptionHooks
Hooks that are used for outputting exceptions.
<translate> Introduced in version:</translate>1.12.0 (r29444)
<translate> Removed in version:</translate>1.30.0 (Gerrit change 355060; git #I85844a2)
<translate> Allowed values:</translate>(array of callbacks)
<translate> Default value:</translate>[]

Details

Hooks that are used for outputting exceptions. Format is:

$wgExceptionHooks['MWException'][] = $funcname;

or:

$wgExceptionHooks['MWException'][] = array( $class, $funcname /*, extra args... */ );

Hooks receive the exception object as their first argument and should return strings or false.