Modified exception type to IllegalArgumentException