Looking at RetryPolicy.builder() for invalid cases, the exception message for maxDelay is not consistent.
If the delay is negative, the error message is Invalid delay (-1ms): must be >= 0.. If the maxDelay is negative, it is Invalid duration (-1ms): maxDelay must be positive..
There is an assertIsPositive() method that's only called by maxDelay().