手册:$wgExceptionHooks

This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 100% complete.
扩展: $wgExceptionHooks
用于输出例外的挂钩。
引进版本:1.12.0 (r29444)
移除版本:1.30.0 (Gerrit change 355060; git #I85844a2)
允许的值:(回调数组)
默认值:[]

细节

用于输出例外的钩子。 格式为:

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

或:

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

钩子将例外对象作为第一个参数接收,并且应返回字符串或false。