Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.
This repository was archived by the owner on May 14, 2020. It is now read-only.

Add more details about file api error into exception #14

Description

@dimitrystd

If error happen in FileApi, then client doesn't have enough info about error. An example not clear was it a general error or just maintenance

 StringResponse stringResponse = this.inputStreamToString(response.getEntity().getContent(), charset);
            if(response.getStatusLine().getStatusCode() != 200) {
                throw new ApiException(stringResponse.getContents());
            }

DoD: ApiException must contains more details:

  • Status code
  • Error code (General_Error; Maintenance; etc)
  • Error message

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions