API: Add exception class as data to internal_api_error codes
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 26 Nov 2018 18:31:41 +0000 (13:31 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 26 Nov 2018 18:42:07 +0000 (13:42 -0500)
commitc765b4e37cfb39ca41ece6e47c43885fd79d6454
treeb05eee1cd7e9cbed5f88febd85e6a37f94561cc1
parent4eace785e66d199cb8fe1ec224bdc49831949a6d
API: Add exception class as data to internal_api_error codes

The code for all uncaught exceptions will in the future be
"internal_api_error". If the client needs to know the class name for
some reason, it can check the new 'errorclass' data item on the error.

Change-Id: Ia9e32bbb8d17692203f4fbcee53a20e87be1776e
RELEASE-NOTES-1.33
includes/api/ApiErrorFormatter.php
includes/api/ApiMain.php
tests/phpunit/includes/api/ApiErrorFormatterTest.php
tests/phpunit/includes/api/ApiMainTest.php