diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-01-22 01:19:25 +0100 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-01-26 00:10:34 +0000 |
commit | c5a01d4b2e30c18c371c0be7a248a185804bdda2 (patch) | |
tree | c9c7ec38f944982fe5ae4c808c4c2e9c7e4fc697 /includes/api/SearchApi.php | |
parent | 549cb9583f36d6d3c1aa1acd4b2c93c1248694fe (diff) | |
download | mediawikicore-c5a01d4b2e30c18c371c0be7a248a185804bdda2.tar.gz mediawikicore-c5a01d4b2e30c18c371c0be7a248a185804bdda2.zip |
Replace some usages of MWException
These exceptions are not documented with @throws and they're really not
meant to be caught.
Bug: T86704
Change-Id: I07f32e42c6fd4bc8785bac91547858f15a9fc2a8
Diffstat (limited to 'includes/api/SearchApi.php')
-rw-r--r-- | includes/api/SearchApi.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/SearchApi.php b/includes/api/SearchApi.php index fe1a3cc31128..533d957eff0d 100644 --- a/includes/api/SearchApi.php +++ b/includes/api/SearchApi.php @@ -41,7 +41,7 @@ trait SearchApi { // are responsible for setting them (since api modules *can* have services // injected). Double check that the api module did indeed set them if ( !$this->searchEngineConfig || !$this->searchEngineFactory ) { - throw new MWException( + throw new LogicException( 'SearchApi requires both a SearchEngineConfig and SearchEngineFactory to be set' ); } |