Raise exception for removed attribute/method.