All other cases of raising an exception where a warning is sufficient should be changed.