Skip to content

Expose more metadata from CloudManagerApiException #16

@kwin

Description

@kwin

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions