Skip to content

Expose more metadata from CloudManagerApiException #16

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions