We can raise an exception. Another solution is to set the row entirely to zero. In many classifiers, this will results in the sample effectively being ignored.