Handbuch:$wgExceptionHooks

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 38% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎日本語
Erweiterungen: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Eingeführt in Version:1.12.0 (r29444)
Entfernt in Version:1.30.0 (Gerrit change 355060; git #I85844a2)
Erlaubte Werte:(array of callbacks)
Standardwert:[]
Andere Einstellungen: Alphabetisch | Nach Funktion

Details

Hooks that are used for outputting exceptions. Format is:

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

oder:

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

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