ionos-cloud / sdk-java

IONOS Cloud Official Java SDK
Apache License 2.0
3 stars 4 forks source link

Parse Error Responses #2

Open fxnn opened 3 years ago

fxnn commented 3 years ago

CloudAPI has a standardized error response format, exposing a set of messages, each with an errorCode and a message. However, the Java SDK does only expose the error response as String (com.ionoscloud.ApiException#getResponseBody).

It would be very valuable when the ApiException would provide a datastructure with the exact error details as given by CloudAPI.