You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have found another issue, I am rising en exception when class being constructed
example:
class FooBar(isValid: Boolean) {
init {
if (!isValid) {
throw IllegalArgumentException()
}
}
}
The detekt tells me "This method is not expected to throw exceptions. This can cause weird behavior.", is that expected that you should not rise exceptions in init?
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics.
lockbot
locked as resolved and limited conversation to collaborators
Jun 20, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I have found another issue, I am rising en exception when class being constructed
example:
The detekt tells me "This method is not expected to throw exceptions. This can cause weird behavior.", is that expected that you should not rise exceptions in init?
The text was updated successfully, but these errors were encountered: