Currently all meta information being passed to the constructor is only used to construct an error message (
|
public CloudManagerApiException(ErrorType type, String baseUrl, String apiPath, ApiException cause) { |
). Sometimes it would be useful for consumers to get the http status code after the exception has been caught.
I propose to also store at least the HTTP status code as field and expose it via a getter. Otherwise error handling apart from logging will be difficult to achieve (because parsing of the error message is necessary then).
Currently all meta information being passed to the constructor is only used to construct an error message (
aio-lib-java-cloudmanager/src/main/java/io/adobe/cloudmanager/CloudManagerApiException.java
Line 52 in 923e671
I propose to also store at least the HTTP status code as field and expose it via a getter. Otherwise error handling apart from logging will be difficult to achieve (because parsing of the error message is necessary then).