Raise an exception instead of doing nothing.