MediaWiki REL1_35
MediaWiki\Api\Hook\ApiMain__onExceptionHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Api\Hook\ApiMain__onExceptionHook:

Public Member Functions

 onApiMain__onException ( $apiMain, $e)
 This hook is called by ApiMain::executeActionWithErrorHandling() when an exception is thrown during API action execution.
 

Detailed Description

Stable to implement.

Definition at line 13 of file ApiMain__onExceptionHook.php.

Member Function Documentation

◆ onApiMain__onException()

MediaWiki\Api\Hook\ApiMain__onExceptionHook::onApiMain__onException (   $apiMain,
  $e 
)

This hook is called by ApiMain::executeActionWithErrorHandling() when an exception is thrown during API action execution.

Since
1.35
Parameters
ApiMain$apiMainCalling ApiMain instance
Throwable$e
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: