Manual:$wgExceptionHooks

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Extensions: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Introduced in version: 1.12.0 (r29444)
Removed in version: 1.30.0 (Gerrit change 355060; git #I85844a2)
Allowed values: (array of callbacks)
Default value: []
Other settings: Alphabetical | By function

Details[edit]

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.