Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -484,7 +484,7 @@ |
485 | 485 | |
486 | 486 | public function getPossibleErrors() { |
487 | 487 | return array_merge( parent::getPossibleErrors(), array( |
488 | | - array( 'code' => 'includeAllDenied', 'info' => 'Cannot view all servers info unless $wgShowHostnames is true', ), |
| 488 | + array( 'code' => 'includeAllDenied', 'info' => 'Cannot view all servers info unless $wgShowHostnames is true' ), |
489 | 489 | ) ); |
490 | 490 | } |
491 | 491 | |
Index: trunk/phase3/includes/api/ApiQueryExtLinksUsage.php |
— | — | @@ -202,6 +202,12 @@ |
203 | 203 | public function getDescription() { |
204 | 204 | return 'Enumerate pages that contain a given URL'; |
205 | 205 | } |
| 206 | + |
| 207 | + public function getPossibleErrors() { |
| 208 | + return array_merge( parent::getPossibleErrors(), array( |
| 209 | + array( 'code' => 'bad_query', 'info' => 'Invalid query' ), |
| 210 | + ) ); |
| 211 | + } |
206 | 212 | |
207 | 213 | protected function getExamples() { |
208 | 214 | return array ( |
Index: trunk/phase3/includes/api/ApiQueryAllpages.php |
— | — | @@ -260,6 +260,13 @@ |
261 | 261 | public function getDescription() { |
262 | 262 | return 'Enumerate all pages sequentially in a given namespace'; |
263 | 263 | } |
| 264 | + |
| 265 | + public function getPossibleErrors() { |
| 266 | + return array_merge( parent::getPossibleErrors(), array( |
| 267 | + array( 'code' => 'params', 'info' => 'Use "gapfilterredir=nonredirects" option instead of "redirects" when using allpages as a generator' ), |
| 268 | + array( 'code' => 'params', 'info' => 'prlevel may not be used without prtype' ), |
| 269 | + ) ); |
| 270 | + } |
264 | 271 | |
265 | 272 | protected function getExamples() { |
266 | 273 | return array ( |
Index: trunk/phase3/includes/api/ApiQueryAllimages.php |
— | — | @@ -192,6 +192,13 @@ |
193 | 193 | public function getDescription() { |
194 | 194 | return 'Enumerate all images sequentially'; |
195 | 195 | } |
| 196 | + |
| 197 | + public function getPossibleErrors() { |
| 198 | + return array_merge( parent::getPossibleErrors(), array( |
| 199 | + array( 'code' => 'params', 'info' => 'Use "gaifilterredir=nonredirects" option instead of "redirects" when using allimages as a generator' ), |
| 200 | + array( 'code' => 'unsupportedrepo', 'info' => 'Local file repository does not support querying all images' ), |
| 201 | + ) ); |
| 202 | + } |
196 | 203 | |
197 | 204 | protected function getExamples() { |
198 | 205 | return array ( |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -284,8 +284,7 @@ |
285 | 285 | |
286 | 286 | return $vals; |
287 | 287 | } |
288 | | - |
289 | | - |
| 288 | + |
290 | 289 | public function getAllowedParams() { |
291 | 290 | global $wgLogTypes; |
292 | 291 | return array ( |
— | — | @@ -350,6 +349,13 @@ |
351 | 350 | public function getDescription() { |
352 | 351 | return 'Get events from logs.'; |
353 | 352 | } |
| 353 | + |
| 354 | + public function getPossibleErrors() { |
| 355 | + return array_merge( parent::getPossibleErrors(), array( |
| 356 | + array( 'code' => 'param_user', 'info' => 'User name $user not found' ), |
| 357 | + array( 'code' => 'param_title', 'info' => 'Bad title value \'title\'' ), |
| 358 | + ) ); |
| 359 | + } |
354 | 360 | |
355 | 361 | protected function getExamples() { |
356 | 362 | return array ( |
Index: trunk/phase3/includes/api/ApiQueryWatchlistRaw.php |
— | — | @@ -170,6 +170,13 @@ |
171 | 171 | public function getDescription() { |
172 | 172 | return "Get all pages on the logged in user's watchlist"; |
173 | 173 | } |
| 174 | + |
| 175 | + public function getPossibleErrors() { |
| 176 | + return array_merge( parent::getPossibleErrors(), array( |
| 177 | + array( 'code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist' ), |
| 178 | + array( 'code' => 'show', 'info' => 'Incorrect parameter - mutually exclusive values may not be supplied' ), |
| 179 | + ) ); |
| 180 | + } |
174 | 181 | |
175 | 182 | protected function getExamples() { |
176 | 183 | return array ( |
Index: trunk/phase3/includes/api/ApiQuery.php |
— | — | @@ -561,6 +561,12 @@ |
562 | 562 | 'All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites.' |
563 | 563 | ); |
564 | 564 | } |
| 565 | + |
| 566 | + public function getPossibleErrors() { |
| 567 | + return array_merge( parent::getPossibleErrors(), array( |
| 568 | + array( 'code' => 'badgenerator', 'info' => 'Module $generatorName cannot be used as a generator' ), |
| 569 | + ) ); |
| 570 | + } |
565 | 571 | |
566 | 572 | protected function getExamples() { |
567 | 573 | return array ( |
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -318,6 +318,12 @@ |
319 | 319 | return array ( |
320 | 320 | 'Returns image information and upload history' |
321 | 321 | ); |
| 322 | + } |
| 323 | + |
| 324 | + public function getPossibleErrors() { |
| 325 | + return array_merge( parent::getPossibleErrors(), array( |
| 326 | + array( 'code' => 'iiurlwidth', 'info' => 'iiurlheight cannot be used without iiurlwidth' ), |
| 327 | + ) ); |
322 | 328 | } |
323 | 329 | |
324 | 330 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -217,6 +217,12 @@ |
218 | 218 | public function getDescription() { |
219 | 219 | return 'List all categories the page(s) belong to'; |
220 | 220 | } |
| 221 | + |
| 222 | + public function getPossibleErrors() { |
| 223 | + return array_merge( parent::getPossibleErrors(), array( |
| 224 | + array( 'code' => 'show', 'info' => 'Incorrect parameter - mutually exclusive values may not be supplied' ), |
| 225 | + ) ); |
| 226 | + } |
221 | 227 | |
222 | 228 | protected function getExamples() { |
223 | 229 | return array ( |