zimbra-api / soap-api

Zimbra SOAP client in PHP language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for error responses

Furgas opened this issue · comments

In case of error response (ex. SoapFault) the Zimbra error cause (code) and message is not easily available. We can only read raw HTTP response string and parse it.
I think that Client\Http should catch the error in doRequest, and try to extract the cause and wrap it in a new, more friendly, exception.

I agree with you