Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ICAT] Better IDS error handling #9574

Closed
mantid-builder opened this issue Jan 17, 2014 · 1 comment
Closed

[ICAT] Better IDS error handling #9574

mantid-builder opened this issue Jan 17, 2014 · 1 comment
Labels
Framework Issues and pull requests related to components in the Framework
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: Jay Rainey

This ticket is blocks : TRAC8727

Currently, CatalogPublish cancels the algorithm and outputs a custom error message to the user informing them what we '''think''' the problem was.

A better solution is to obtain the JSON body returned in the response from the server and output the content in the format of: code + " :" + message where code and message are JSON properties.

For example, when a 404 occurs the following status and body is returned:

  Status: 404 (not found)
  Body: json response:
  {
    "code"   : "NotFoundException",
    "message":"Datafile[id:43341911] not found."
  }

Keywords: ICAT

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 8730

@mantid-builder mantid-builder added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@mantid-builder mantid-builder added this to the Release 3.1 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

No branches or pull requests

1 participant