For some Textmaster responses, the ResponseMediator does not throw exception because the error message is not in the first level of the retruned array.
Example :
This method will return an array where the error is not at first level, so the ResponseMediator will not see it.
For some Textmaster responses, the ResponseMediator does not throw exception because the error message is not in the first level of the retruned array. Example : This method will return an array where the error is not at first level, so the ResponseMediator will not see it.
Here is the code to thorw an exception : https://github.com/worldia/textmaster-api/blob/master/lib/Textmaster/HttpClient/Message/ResponseMediator.php#L33
Shouldn't it be better to also parse the response HTTP_CODE to detect errors ?
Regards, JM