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

CHE-117: Fix viewing some git errors on client #1643

Merged
merged 1 commit into from
Jul 6, 2016
Merged

CHE-117: Fix viewing some git errors on client #1643

merged 1 commit into from
Jul 6, 2016

Conversation

vinokurig
Copy link
Contributor

Throw GitException instead IllegalArgumentException because IllegalArgumentException can not be serialized in the client side. @skabashnyuk please review

@vzhukovs
Copy link
Contributor

vzhukovs commented Jul 4, 2016

You can add runtime exception mapper like it did in this PR (#1547).
So, then you'll be able to deserialize the service error. WDYT?

@codenvy-ci
Copy link

@vinokurig
Copy link
Contributor Author

We need more understandable exceptions instead GitException, but it is another question. @skabashnyuk @sleshchenko What do you think?

@sleshchenko
Copy link
Member

I think that throwing RuntimeException from our services is unnormal situation. It is OK for to use GitException here

@skabashnyuk
Copy link
Contributor

ok

@vinokurig vinokurig merged commit 63a16cf into master Jul 6, 2016
@vinokurig vinokurig deleted the CHE-117 branch July 6, 2016 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants