Podręcznik:$wgExceptionHooks

From mediawiki.org
This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 25% complete.
Rozszerzenia: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Wprowadzono w wersji:1.12.0 (r29444)
Usunięto w wersji:1.30.0 (Gerrit change 355060; git #I85844a2)
Dozwolone wartości:(array of callbacks)
Domyślna wartość:[]

Szczegóły

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.