Raise exception when a wrong getter is called.