MediaWiki  master
MediaWiki\Api\Hook\ApiMain__onExceptionHook Interface Reference

Stable for implementation. 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. More...
 

Detailed Description

Stable for implementation.

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: