MediaWiki  master
ApiMain__onExceptionHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Api\Hook;
4 
5 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6 use ApiMain;
7 use Throwable;
8 
27  public function onApiMain__onException( $apiMain, $e );
28 }
This is the main API class, used for both external and internal processing.
Definition: ApiMain.php:64
This is a hook handler interface, see docs/Hooks.md.
onApiMain__onException( $apiMain, $e)
This hook is called by ApiMain::executeActionWithErrorHandling() when an exception is thrown during A...