2 ms·
Especially if you give them the detailed requirements for 100% compatibility. There is only one way to write that method such that the same exceptions are thro
by mywittyname 11y ago
Especially if you give them the detailed requirements for 100% compatibility. There is only one way to write that method such that the same exceptions are thrown with the same error messages for the same input.
You can rearrange the last two if blocks and have complete interoperability, but the messages will be different. Moving that first if block, though, will change the behavior of the method by a large degree.