Open main menu

Manual:$wgExceptionHooks

This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 50% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎português do Brasil • ‎日本語
Extensiones: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Introducido en la versión:1.12.0 (r29444)
Eliminado en la versión:1.30.0 (Gerrit change 355060; git #I85844a2)
Valores permitidos:(array of callbacks)
Valor predeterminado:[]

Detalles

Hooks that are used for outputting exceptions. El formato es:

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

o:

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

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