Merge "jquery.tablesorter: Silence an expected "sort-rowspan-error" warning"
[mediawiki.git] / includes / api / Hook / ApiMain__onExceptionHook.php
blob21694eb2dfb21620a20a01d853e3a7fb94253561
1 <?php
3 namespace MediaWiki\Api\Hook;
5 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6 use MediaWiki\Api\ApiMain;
7 use Throwable;
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "ApiMain::onException" to register handlers implementing this interface.
13 * @stable to implement
14 * @ingroup Hooks
16 interface ApiMain__onExceptionHook {
17 /**
18 * This hook is called by ApiMain::executeActionWithErrorHandling() when
19 * an exception is thrown during API action execution.
21 * @since 1.35
23 * @param ApiMain $apiMain Calling ApiMain instance
24 * @param Throwable $e
25 * @return bool|void True or no return value to continue or false to abort
27 public function onApiMain__onException( $apiMain, $e );