Manual:$wgExceptionHooks/fr

From Linux Web Expert

<translate> Extensions</translate>: $wgExceptionHooks
Crochets utilisés pour sortir les exceptions.
<translate> Introduced in version:</translate>1.12.0 (r29444)
<translate> Removed in version:</translate>1.30.0 (Gerrit change 355060; git #I85844a2)
<translate> Allowed values:</translate>(tableau de rappels)
<translate> Default value:</translate>[]

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.