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

Remove custom exception type #186

Merged
merged 2 commits into from
Jul 30, 2017
Merged

Remove custom exception type #186

merged 2 commits into from
Jul 30, 2017

Conversation

ajoberstar
Copy link
Owner

Since JGit's exceptions are more information, all uses of custom
exception types were removed and JGit's are allowed to bubble up, when
there isn't any explicit handling needed.

This is not quite what the original requester in #146 had in mind, but this
seems like a better experience when something fails. For someone trying
to catch excpetions, they'll probably need to catch raw Exception. It
was unlikely trying to wrap them all was going to be successful anyway.

Since JGit's exceptions are more information, all uses of custom
exception types were removed and JGit's are allowed to bubble up, when
there isn't any explicit handling needed.

This is not quite what the original requester in #146 had in mind, but this
seems like a better experience when something fails. For someone trying
to catch excpetions, they'll probably need to catch raw Exception. It
was unlikely trying to wrap them all was going to be successful anyway.
@ajoberstar
Copy link
Owner Author

SonarQube analysis reported 1 issue

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR JschAgentProxySessionFactory.groovy#L22: The [com.jcraft.jsch.agentproxy.AgentProxyException] import is never referenced rule

@ajoberstar ajoberstar merged commit 0e4660e into master Jul 30, 2017
@ajoberstar ajoberstar deleted the exceptions branch July 30, 2017 02:07
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.

1 participant