Exception change from ApiExpection to IOException

Hi,

Just looking into changing the Java SDK we currently use to a new Java SDK version 8.0.0 and noticed that most of the exception thrown have changed from ApiException to IOException so might need some rework around exception handling. Is this correct?

Also, does this mean, the example are yet to be changed to reflect this as example still catch ApiException? (e.g. https://developer.mypurecloud.com/api/rest/client-libraries/java/UsersApi.html#postUsers)

The exception handling has changed since the pre-release versions. Previously, all exceptions were being caught and stuffed into ApiException. This is no longer the case. Exceptions will be thrown as they occur, and ApiException is used when there was actually a problem with the API response, meaning a non-2xx response code and not a transport or serialization error. The specific errors that will be thrown aside from ApiException will differ depending on which HTTP library you're using.