Throw New Illegal Argument Exception Java