raise proper exception for consistency with ruby IPAddr