Manuel:$wgExceptionHooks

From mediawiki.org
This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 100% complete.
Extensions: $wgExceptionHooks
Crochets utilisés pour sortir les exceptions.
Introduit dans la version :1.12.0 (r29444)
Retiré dans la version :1.30.0 (Gerrit change 355060; git #I85844a2)
Valeurs autorisées :(tableau de rappels)
Valeur par défaut :[]

Détails

Crochets utilisés pour sortir les exceptions. Le format est :

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

ou:

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

Les crochets reçoivent l'objet exception comme leur premier argument et devraient retourner des chaînes au faux.