-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR] change new Exception to IllegalArgumentException #6434
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
Conversation
|
Test build #33579 has finished for PR 6434 at commit
|
|
I agree that it's not good practice to throw Instead these should be more meaningful exception types. |
|
@srowen do you have a better suggestion for this case? In these cases, these cases are not supposed to happen at runtime. It is almost like an assert. |
|
A subclass of |
|
+1 |
|
Sorry @adrian-wang I think in this case IllegalArgumentException is more appropriate. |
|
Test build #33706 has finished for PR 6434 at commit
|
|
@adrian-wang can you update the exception to IllegalArgumentException so I can merge this? |
|
Oh, sorry for missing this, I'll update it very soon. |
|
Test build #34428 has finished for PR 6434 at commit
|
|
Test build #34427 has finished for PR 6434 at commit
|
|
Thanks. I've merged this. |
Author: Daoyuan Wang <[email protected]> Closes apache#6434 from adrian-wang/joinerr and squashes the following commits: ee1b64f [Daoyuan Wang] break line f7c53e9 [Daoyuan Wang] to IllegalArgumentException f8dea2d [Daoyuan Wang] sys.err to IllegalStateException be82259 [Daoyuan Wang] change new exception to sys.err
No description provided.