You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception can be enhanced by passing causing exception as $previous when ApiException is created. Now it's impossible to get API response body from ApiException.
Expected Behavior
I'd like to get API response body from ApiException $e.
Exception can be enhanced by passing causing exception as $previous when ApiException is created. Now it's impossible to get API response body from ApiException.
Expected Behavior
I'd like to get API response body from ApiException $e.
try {
...
} catch (ApiException $e)
(string) $e->getPrevious()->getResponse()->getBody();
}
Current Behavior
It's impossible to call $e->getPrevious()->... because previous exception is't stored.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: