-
Notifications
You must be signed in to change notification settings - Fork 736
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
Do not throw new Error() #400
Comments
Care to file a PR for it? |
Well, even |
Yeah, I don't mind filing. I was going to bed last night so filed it before forgetting. |
Looks like PR has been filed. |
Merged #401 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/kohsuke/github-api/search?utf8=%E2%9C%93&q=%22new+Error%22&type=
In general, this seems to be a bad idea. See also comments in jenkinsci/ghprb-plugin#570. This PR for the GHPRB plugin is left with the dilemma of catching throwable because there's no other choice since this API throws
java.lang.Error
.A quote from
java.lang.Error
javadoc:Instead, consider throwing
IllegalStateException
.The text was updated successfully, but these errors were encountered: