GUI: which 'throw' can be replaced by 'ASSERT'?

Any throw that can only be reached in case of a bug (as opposed to invalid user input), should be replaced by ASSERT.