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

Add more details about file api error into exception #14

Open
dimitrystd opened this issue Jul 30, 2015 · 0 comments
Open

Add more details about file api error into exception #14

dimitrystd opened this issue Jul 30, 2015 · 0 comments
Assignees

Comments

@dimitrystd
Copy link
Contributor

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
@axelerod axelerod self-assigned this Sep 29, 2015
axelerod added a commit that referenced this issue Sep 29, 2015
axelerod added a commit that referenced this issue Sep 29, 2015
axelerod added a commit that referenced this issue Sep 29, 2015
@axelerod axelerod mentioned this issue Sep 29, 2015
axelerod added a commit that referenced this issue Sep 30, 2015
axelerod added a commit that referenced this issue Sep 30, 2015
axelerod added a commit that referenced this issue Sep 30, 2015
axelerod added a commit that referenced this issue Sep 30, 2015
axelerod added a commit that referenced this issue Oct 1, 2015
axelerod added a commit that referenced this issue Oct 1, 2015
axelerod added a commit that referenced this issue Oct 1, 2015
axelerod added a commit that referenced this issue Oct 1, 2015
axelerod added a commit that referenced this issue Oct 2, 2015
axelerod added a commit that referenced this issue Oct 5, 2015
axelerod added a commit that referenced this issue Oct 5, 2015
axelerod added a commit that referenced this issue Oct 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants