throw invalidArgumentException if object is not fully initialized