How to Throw IllegalArgumentException in Java