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
This behaviour is not documented in the javadoc for getAnyPod nor apparent from the source code.
However, the user of #getAnyPod did not provide any illegal arguments, and the exception is not helpful.
I propose raising a labeld RuntimeException instead.
The text was updated successfully, but these errors were encountered:
OpenShift#getAnyPod
raisesIllegalArgumentException
when no pod is found.This is caused by the size of the results (0) being used to call
Random#nextInt
.nextInt
will raise IllegalArgumentException when called with non-positive number.This behaviour is not documented in the javadoc for
getAnyPod
nor apparent from the source code.However, the user of
#getAnyPod
did not provide any illegal arguments, and the exception is not helpful.I propose raising a labeld RuntimeException instead.
The text was updated successfully, but these errors were encountered: