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

Fixed issues found when removing a non existing cartridge#353

Closed
dinithis wants to merge 19 commits intoapache:masterfrom
dinithis:master
Closed

Fixed issues found when removing a non existing cartridge#353
dinithis wants to merge 19 commits intoapache:masterfrom
dinithis:master

Conversation

@dinithis
Copy link
Copy Markdown
Contributor

Fixed issues found when removing a non existing cartridge

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not catch the specific exception at Util class. Catch it in API class and send the response code accordingly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have corrected this with the commit "handling specific exceptions in API class"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not send BAD_REQUEST for Remote exception. We can throw a RestAPIException for that, since it will be an internal server error.

@asfgit asfgit closed this in 5dc54d5 May 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants