Now throw an exception if the initialization data is not valid.