describe the places where InvalidatedError can be raised.