Jump to content

Manual:$wgExceptionHooks

From mediawiki.org
This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 25% complete.
Uzantılar: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Sürümde tanıtıldı:1.12.0 (r29444)
Sürümde kaldırıldı:1.30.0 (Gerrit change 355060; git #I85844a2)
İzin verilen değerler:(array of callbacks)
Varsayılan değer:[]

Ayrıntılar

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.