Translations:Manual:$wgExceptionHooks/7/en

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