-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
Add IllegalArgumentException and IllegalStateException to ThrowingExceptionsWithoutMessageOrCause #4013
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4013 +/- ##
=========================================
Coverage 83.55% 83.55%
Complexity 3181 3181
=========================================
Files 459 459
Lines 9083 9085 +2
Branches 1771 1771
=========================================
+ Hits 7589 7591 +2
Misses 561 561
Partials 933 933
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason for removing these exceptions in the first place?
Previously the situation was: /**
* @configuration exceptions - exceptions which should not be thrown without message or cause
* (default: `- IllegalArgumentException
* - IllegalStateException
* - IOException`)
**/
...
private val exceptionsDefaults = listOf(
"ArrayIndexOutOfBoundsException",
"Error",
"Exception",
"IllegalMonitorStateException",
"NullPointerException",
"IndexOutOfBoundsException",
"RuntimeException",
"Throwable"
) So there was quite a mismatch between what was configured and what was documented. |
Yeah, but if you used the "default config" as "default" you were using the "documentation" instead of the real default values. For that reason I think that it is kind of a regresion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run gradlew generateDocumentation
to update the default config.
Good call! 🤔 we have a problem with CI here, right? Why I'm getting green if I forgot about that? |
…eptionsWithoutMessageOrCause
That check is gone for quite some time. I have no idea when and why. |
This two exceptions where removed but I think that we should keep them.
Fix #4012